mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:21:15 +08:00
17 lines
424 B
JavaScript
17 lines
424 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = async ({ config }) => {
|
|
config.module.rules.push({
|
|
test: /\.vue$/,
|
|
loader: 'storybook-addon-vue-info/loader',
|
|
enforce: 'post',
|
|
});
|
|
config.module.rules.push({
|
|
test: [/\.stories\.js$/, /index\.js$/],
|
|
loaders: [require.resolve('@storybook/source-loader')],
|
|
include: [path.resolve(__dirname, '../src')],
|
|
enforce: 'pre',
|
|
});
|
|
return config;
|
|
};
|