config/webpack/production.js: Remove caching in OfflinePlugin (introduced in 0692991b5)

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-08-12 18:06:18 +02:00
parent 9f2c2c6d74
commit c56a5ff514
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 1 additions and 17 deletions

View File

@ -46,23 +46,7 @@ module.exports = merge(sharedConfig, {
plugins: [
new OfflinePlugin({
publicPath: output.publicPath, // sw.js must be served from the root to avoid scope issues
safeToUseOptionalCaches: true,
caches: {
main: [':rest:'],
additional: [':externals:'],
optional: [
'**/locale_*.js', // don't fetch every locale; the user only needs one
'**/*_polyfills-*.js', // the user may not need polyfills
'**/*.woff2', // the user may have system-fonts enabled
// images/audio can be cached on-demand
'**/*.png',
'**/*.jpg',
'**/*.jpeg',
'**/*.svg',
'**/*.mp3',
'**/*.ogg',
],
},
caches: {},
externals: [
'/emoji/1f602.svg', // used for emoji picker dropdown
'/emoji/sheet_10.png', // used in emoji-mart