From d106994fc1c3bcd1e01d595b22d4e436d2a3dec5 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 12 Aug 2018 18:06:18 +0200 Subject: [PATCH] config/webpack/production.js: Remove caching in OfflinePlugin (introduced in 0692991b5) --- config/webpack/production.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/config/webpack/production.js b/config/webpack/production.js index c7716e099..988dd4ea4 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -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