Skip to content

Commit

Permalink
Fix issue when extending webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
fvgs committed Jul 17, 2017
1 parent e2e1197 commit 6985e2c
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 6985e2c

Please sign in to comment.