Merge branch 'disable-preloading' into 'develop'

Disable preloading

See merge request funkwhale/funkwhale!502
This commit is contained in:
Eliot Berriot 2018-12-20 16:44:25 +01:00
commit 4b4bb85148
2 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,7 @@ export default {
let self = this let self = this
import(`../translations/${value}.json`).then((response) =>{ import(`../translations/${value}.json`).then((response) =>{
Vue.$translations[value] = response.default[value] Vue.$translations[value] = response.default[value]
}).finally(() => {
self.$language.current = value self.$language.current = value
}) })
} }

View File

@ -37,6 +37,9 @@ module.exports = {
}, },
chainWebpack: config => { chainWebpack: config => {
config.optimization.delete('splitChunks') config.optimization.delete('splitChunks')
console.log(config.plugins)
config.plugins.delete('prefetch-embed')
config.plugins.delete('prefetch-index')
}, },
configureWebpack: { configureWebpack: {
plugins: plugins, plugins: plugins,