fix(service-worker): don't include sourceMappingURL in ngsw-worker (#24877)
Fixes #23596 PR Close #24877
This commit is contained in:
parent
41ef75869c
commit
86203736e9
|
@ -30,7 +30,9 @@ genrule(
|
|||
name = "ngsw_worker_renamed",
|
||||
srcs = ["//packages/service-worker/worker:ngsw_worker.es6.js"],
|
||||
outs = ["ngsw-worker.js"],
|
||||
cmd = "cp $< $@",
|
||||
# Remove sourcemap since this file will be served in production site
|
||||
# See https://github.com/angular/angular/issues/23596
|
||||
cmd = "grep -v '//# sourceMappingURL' < $< > $@",
|
||||
)
|
||||
|
||||
ng_package(
|
||||
|
|
Loading…
Reference in New Issue