mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 02:22:09 +00:00
storybook webpack config extends app config
This commit is contained in:
parent
3269976090
commit
c13c9c8fd5
1 changed files with 21 additions and 0 deletions
21
storybook/webpack.config.js
Normal file
21
storybook/webpack.config.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
const appConfig = require('../webpack.config.js');
|
||||
|
||||
module.exports = async ({ config: storybookConfig, mode }) => {
|
||||
storybookConfig.module = {
|
||||
...storybookConfig.module
|
||||
};
|
||||
storybookConfig.module.rules = appConfig.module.rules;
|
||||
storybookConfig.resolve = {
|
||||
...storybookConfig.resolve
|
||||
};
|
||||
storybookConfig.resolve.extensions = [
|
||||
...storybookConfig.resolve.extensions,
|
||||
...appConfig.resolve.extensions
|
||||
];
|
||||
storybookConfig.resolve.alias = {
|
||||
...storybookConfig.resolve.alias,
|
||||
...appConfig.resolve.alias
|
||||
};
|
||||
|
||||
return storybookConfig;
|
||||
};
|
||||
Loading…
Reference in a new issue