File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 88 RawPlugin ,
99 SassPlugin ,
1010 EnvPlugin ,
11- WebIndexPlugin
11+ WebIndexPlugin ,
12+ UglifyJSPlugin
1213} from 'fuse-box'
1314import { resolve } from 'path'
1415import { NgProdPlugin } from '../fusebox/ng.prod.plugin'
@@ -165,16 +166,7 @@ function serve(isProdBuild = false, isServiceWorkerEnabled = false) {
165166 homeDir : resolve ( 'node_modules/@angular/service-worker' ) ,
166167 output : `${ browserOutput } /$name.js` ,
167168 target : 'browser@es5' ,
168- plugins : [
169- isProdBuild &&
170- QuantumPlugin ( {
171- warnings : false ,
172- uglify : config . fusebox . browser . prod . uglify ,
173- treeshake : config . fusebox . browser . prod . treeshake ,
174- bakeApiIntoBundle : 'ngsw-worker'
175- } ) ,
176- CompressionPlugin ( )
177- ] as any
169+ plugins : [ isProdBuild && UglifyJSPlugin ( ) , CompressionPlugin ( ) ] as any
178170 } )
179171 fuseSw . bundle ( 'ngsw-worker' ) . instructions ( ' > [ngsw-worker.js]' )
180172
You can’t perform that action at this time.
0 commit comments