mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 15:41:15 +08:00
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: [/\.stories\.js$/, /index\.js$/],
|
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
|
include: [path.resolve(__dirname, '../src')],
|
|
enforce: 'pre',
|
|
},
|
|
{
|
|
test: /\.stylesheet$/,
|
|
use: [require.resolve('stylesheet-loader')],
|
|
},
|
|
],
|
|
},
|
|
};
|