redux-devtools/packages/devui/.storybook/webpack.config.js
2019-01-03 15:00:55 +02:00

27 lines
593 B
JavaScript
Executable File

const path = require('path');
const updateConfig = require('./user/modify_webpack_config');
const config = {
module: {
rules: [
{
test: /\.css?$/,
use: [{ loader: 'style-loader' }, { loader: 'raw-loader' }],
include: path.resolve(__dirname, '../')
},
{
test: /\.json?$/,
loader: 'json-loader',
include: path.resolve(__dirname, '../')
},
{
test: /\.woff2?(\?\S*)?$/,
loader: 'url?limit=65000&mimetype=application/font-woff'
}
]
}
};
updateConfig(config);
module.exports = config;