accounts-frontend/.storybook/webpack.config.js

15 lines
368 B
JavaScript
Raw Normal View History

2019-12-09 13:17:51 +05:30
const rootConfig = require('../webpack.config');
module.exports = async ({ config }) => ({
...config,
resolve: rootConfig.resolve,
module: {
...config.module,
// our rules should satisfy all storybook needs,
// so replace all storybook defaults with our rules
rules: rootConfig.module.rules,
},
resolveLoader: rootConfig.resolveLoader,
});