mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
17 lines
394 B
JavaScript
17 lines
394 B
JavaScript
const commonExports = require('../dist/frameworks/common/makePreset').default('vue');
|
|
|
|
const webpack = (webpackConfig, options) => {
|
|
const config = commonExports.webpack(webpackConfig, options);
|
|
config.module.rules.push({
|
|
test: /\.vue$/,
|
|
loader: 'storybook-addon-vue-info/loader',
|
|
enforce: 'post',
|
|
});
|
|
return config;
|
|
};
|
|
|
|
module.exports = {
|
|
...commonExports,
|
|
webpack,
|
|
};
|