Exclude inline chunks from precache manifest
This commit is contained in:
parent
70b2c4df47
commit
9a5d7f8360
2 changed files with 31 additions and 25 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue