mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
23 lines
390 B
JavaScript
23 lines
390 B
JavaScript
const path = require('path');
|
|
|
|
const config = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ['style-loader', 'css-loader'],
|
|
},
|
|
{
|
|
test: /\.yml$/,
|
|
use: ['json-loader', 'yaml-loader'],
|
|
},
|
|
{
|
|
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/,
|
|
use: ['file-loader'],
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|