safe-react/.storybook/webpack.config.js

14 lines
378 B
JavaScript

process.env.NODE_ENV = 'development'
const prodConfig = require('../config/webpack.config.dev');
module.exports = function(storybookConfig, configType) {
const config = Object.assign({}, prodConfig);
storybookConfig.module.rules = storybookConfig.module.rules.concat(config.module.rules)
storybookConfig.resolve = config.resolve;
return storybookConfig;
};