diff --git a/packages/schematics/angular/service-worker/files/ngsw-config.json.template b/packages/schematics/angular/service-worker/files/ngsw-config.json.template index 0adc9fb8690f..4e4d88dc904e 100644 --- a/packages/schematics/angular/service-worker/files/ngsw-config.json.template +++ b/packages/schematics/angular/service-worker/files/ngsw-config.json.template @@ -11,7 +11,8 @@ "/index.html", "/manifest.webmanifest", "/*.css", - "/*.js" + "/*.js", + "!/*-es5*.js" ] } }, { @@ -21,7 +22,8 @@ "resources": { "files": [ "/assets/**", - "<%= resourcesOutputPath %>/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" + "<%= resourcesOutputPath %>/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)", + "/*-es5*.js" ] } }