Skip to content

Commit

Permalink
Fix injectManifest: don't precache ES5 and polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jan 22, 2019
1 parent 10d7ee2 commit 8268308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ const productionConfig = merge([
new InjectManifest({
swSrc: resolve('src', 'service-worker.js'),
swDest: resolve(OUTPUT_PATH, 'sw.js'),
exclude: [/webcomponents-(?!loader).*\.js$/]
exclude: [
/.*\/webcomponents-(?!loader).*\.js(\.map)?$/,
/.*\.es5\..*\.js$/
]
}),
new CompressionPlugin({ test: /\.js(\.map)?$/i }),
new BrotliPlugin({
Expand Down

0 comments on commit 8268308

Please sign in to comment.