Skip to content

Commit 6fef6de

Browse files
author
Laurent Goudet
committed
fix(@schematics/angular): exclude es5 bundles from being prefetch when differencial loading is used
1 parent d62a6ec commit 6fef6de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/schematics/angular/service-worker/files/ngsw-config.json.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"/index.html",
1212
"/manifest.webmanifest",
1313
"/*.css",
14-
"/*.js"
14+
"/*.js",
15+
"!/*-es5*.js"
1516
]
1617
}
1718
}, {
@@ -21,7 +22,8 @@
2122
"resources": {
2223
"files": [
2324
"/assets/**",
24-
"<%= resourcesOutputPath %>/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
25+
"<%= resourcesOutputPath %>/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)",
26+
"/*-es5*.js"
2527
]
2628
}
2729
}

0 commit comments

Comments
 (0)