From 92c15b435ce175385244e09678adb5712080b6f9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 25 Jul 2021 12:55:31 +0200 Subject: [PATCH] Don't prefetch all i18n files --- vue.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vue.config.js b/vue.config.js index 4fd49fc92..5f5517e1f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -2,6 +2,15 @@ module.exports = { configureWebpack: { devtool: 'source-map', }, + chainWebpack: config => { + // Don't prefetch all languages + config.plugin('prefetch').tap(options => { + options[0].fileBlacklist = options[0].fileBlacklist || [] + options[0].fileBlacklist.push(/lang(.)+?\.js$/) + options[0].fileBlacklist.push(/lang(.)+?\.js.map$/) + return options + }) + }, productionSourceMap: false, pwa: { name: 'Vikunja',