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 8
8
RawPlugin ,
9
9
SassPlugin ,
10
10
EnvPlugin ,
11
- WebIndexPlugin
11
+ WebIndexPlugin ,
12
+ UglifyJSPlugin
12
13
} from 'fuse-box'
13
14
import { resolve } from 'path'
14
15
import { NgProdPlugin } from '../fusebox/ng.prod.plugin'
@@ -165,16 +166,7 @@ function serve(isProdBuild = false, isServiceWorkerEnabled = false) {
165
166
homeDir : resolve ( 'node_modules/@angular/service-worker' ) ,
166
167
output : `${ browserOutput } /$name.js` ,
167
168
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
178
170
} )
179
171
fuseSw . bundle ( 'ngsw-worker' ) . instructions ( ' > [ngsw-worker.js]' )
180
172
You can’t perform that action at this time.
0 commit comments