mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-26 08:42:03 +05:30
Improve storybook's performance by not building all possible locales/countries flags
This commit is contained in:
parent
70070ef516
commit
1dfe85e736
@ -1,8 +1,12 @@
|
||||
// @ts-nocheck
|
||||
const { ContextReplacementPlugin } = require('webpack');
|
||||
|
||||
const rootConfig = require('../webpack.config');
|
||||
|
||||
module.exports = async ({ config }) => ({
|
||||
...config,
|
||||
resolve: rootConfig.resolve,
|
||||
|
||||
module: {
|
||||
...config.module,
|
||||
// our rules should satisfy all storybook needs,
|
||||
@ -11,4 +15,9 @@ module.exports = async ({ config }) => ({
|
||||
},
|
||||
|
||||
resolveLoader: rootConfig.resolveLoader,
|
||||
|
||||
plugins: [
|
||||
...config.plugins,
|
||||
...rootConfig.plugins.filter((plugin) => plugin instanceof ContextReplacementPlugin),
|
||||
],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user