mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 01:41:05 +08:00
19 lines
376 B
JavaScript
19 lines
376 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: /\.txt$/,
|
|
use: 'raw-loader',
|
|
},
|
|
],
|
|
},
|
|
};
|