storybook/addons/docs/vue/preset.js
2019-10-25 14:50:46 +08:00

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,
};