mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-13 00:09:03 +08:00
31 lines
467 B
JavaScript
31 lines
467 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;
|