Don't prefetch all i18n files

This commit is contained in:
kolaente 2021-07-25 12:55:31 +02:00
parent c45911fd36
commit 92c15b435c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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',