File tree Expand file tree Collapse file tree
packages/angular-cli/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ const init = (config) => {
1212 const environment = config . angularCli . environment || 'dev' ;
1313
1414 // add webpack config
15- config . webpack = getWebpackTestConfig ( config . basePath , environment , appConfig ) ;
16- config . webpackMiddleware = {
15+ const webpackConfig = getWebpackTestConfig ( config . basePath , environment , appConfig ) ;
16+ const webpackMiddlewareConfig = {
1717 noInfo : true , // Hide webpack output because its noisy.
1818 stats : { // Also prevent chunk and module display output, cleaner look. Only emit errors.
1919 assets : false ,
@@ -25,6 +25,8 @@ const init = (config) => {
2525 chunkModules : false
2626 }
2727 } ;
28+ config . webpack = Object . assign ( webpackConfig , config . webpack ) ;
29+ config . webpackMiddleware = Object . assign ( webpackMiddlewareConfig , config . webpackMiddleware ) ;
2830
2931 // replace the angular-cli preprocessor with webpack+sourcemap
3032 Object . keys ( config . preprocessors )
You can’t perform that action at this time.
0 commit comments