Skip to content

Commit

Permalink
Merge pull request #1468 from fvgs/fix-extend-webpack-config
Browse files Browse the repository at this point in the history
Fix issue when extending webpack config
  • Loading branch information
shilman authored Jul 17, 2017
2 parents e2e1197 + 6985e2c commit 860e952
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/react/src/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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,
Expand Down

0 comments on commit 860e952

Please sign in to comment.