mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Merge pull request #3279 from benbakhar/fix-extend-vue-webpak-config
Fix issue when extending webpack config
This commit is contained in:
commit
c74e0857b7
@ -71,7 +71,10 @@ export default function(configType, baseConfig, configDir) {
|
||||
...config.module,
|
||||
// We need to use our and custom rules.
|
||||
...customConfig.module,
|
||||
rules: [...config.module.rules, ...(customConfig.module.rules || [])],
|
||||
rules: [
|
||||
...config.module.rules,
|
||||
...((customConfig.module && customConfig.module.rules) || []),
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
...config.resolve,
|
||||
|
Loading…
x
Reference in New Issue
Block a user