File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
packages/@angular/cli/models/webpack-configs Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,6 @@ export function getTestConfig(testConfig: WebpackTestOptions) {
70
70
} ) ;
71
71
}
72
72
73
- if ( true ) {
74
- extraPlugins . push ( new webpack . optimize . CommonsChunkPlugin ( {
75
- minChunks : Infinity ,
76
- name : 'inline'
77
- } ) ) ;
78
- extraPlugins . push ( new webpack . optimize . CommonsChunkPlugin ( {
79
- name : 'vendor' ,
80
- chunks : [ 'main' ] ,
81
- minChunks : ( module : any ) => module . resource && module . resource . startsWith ( nodeModules )
82
- } ) ) ;
83
- }
84
-
85
73
return {
86
74
devtool : testConfig . sourcemaps ? 'inline-source-map' : 'eval' ,
87
75
entry : {
@@ -91,6 +79,15 @@ export function getTestConfig(testConfig: WebpackTestOptions) {
91
79
rules : [ ] . concat ( extraRules )
92
80
} ,
93
81
plugins : [
82
+ new webpack . optimize . CommonsChunkPlugin ( {
83
+ minChunks : Infinity ,
84
+ name : 'inline'
85
+ } ) ,
86
+ new webpack . optimize . CommonsChunkPlugin ( {
87
+ name : 'vendor' ,
88
+ chunks : [ 'main' ] ,
89
+ minChunks : ( module : any ) => module . resource && module . resource . startsWith ( nodeModules )
90
+ } ) ,
94
91
// new webpackBuildLogger({ logEnabled: true }),
95
92
// new (<any>FileListPlugin)(),
96
93
new KarmaWebpackEmitlessError ( )
You can’t perform that action at this time.
0 commit comments