Merge pull request #3279 from benbakhar/fix-extend-vue-webpak-config

Fix issue when extending webpack config
This commit is contained in:
Igor 2018-03-25 17:06:29 +03:00 committed by GitHub
commit c74e0857b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,