Load translations separately to reduce bandwidth usage

This commit is contained in:
Eliot Berriot 2018-12-19 21:45:12 +01:00
parent 12f3670548
commit ba68246e0d
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 49 additions and 11 deletions

View file

@ -1,4 +1,9 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
let plugins = []
if (process.env.BUNDLE_ANALYZE === '1') {
plugins.push(new BundleAnalyzerPlugin())
}
module.exports = {
baseUrl: '/front/',
pages: {
@ -17,6 +22,7 @@ module.exports = {
config.optimization.delete('splitChunks')
},
configureWebpack: {
plugins: plugins,
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'