fix(service-worker): don't include sourceMappingURL in ngsw-worker (#24877)

Fixes #23596

PR Close #24877
This commit is contained in:
Alex Eagle 2018-07-13 13:27:50 -07:00 committed by Victor Berchet
parent 41ef75869c
commit 86203736e9
1 changed files with 3 additions and 1 deletions

View File

@ -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(