Don't prefetch all i18n files
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2021-07-25 12:55:31 +02:00
parent c45911fd36
commit 92c15b435c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 9 additions and 0 deletions

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