Exclude inline chunks from precache manifest

This commit is contained in:
Ken-Håvard Lieng 2018-11-08 08:57:24 +01:00
parent 70b2c4df47
commit 9a5d7f8360
2 changed files with 31 additions and 25 deletions

View file

@ -85,7 +85,13 @@ module.exports = {
new InjectManifest({
swSrc: './src/js/sw.js',
globDirectory: './src',
globPatterns: ['font/*.woff2']
globPatterns: ['font/*.woff2'],
exclude: [
/\.map$/,
/^manifest.*\.js(?:on)?$/,
/^boot.*\.js$/,
/^runtime.*\.js$/
]
})
],
optimization: {