Skip to content

Commit e826ce5

Browse files
fix: remove quantumn from service-worker
1 parent 1fa7dfd commit e826ce5

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/commands/serve.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
RawPlugin,
99
SassPlugin,
1010
EnvPlugin,
11-
WebIndexPlugin
11+
WebIndexPlugin,
12+
UglifyJSPlugin
1213
} from 'fuse-box'
1314
import { resolve } from 'path'
1415
import { 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

0 commit comments

Comments
 (0)