Don't prefetch all i18n files
This commit is contained in:
parent
c45911fd36
commit
92c15b435c
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,15 @@ module.exports = {
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
devtool: 'source-map',
|
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,
|
productionSourceMap: false,
|
||||||
pwa: {
|
pwa: {
|
||||||
name: 'Vikunja',
|
name: 'Vikunja',
|
||||||
|
|
Loading…
Reference in a new issue