diff --git a/front/vue.config.js b/front/vue.config.js index 69bfdc34e..97af9f856 100644 --- a/front/vue.config.js +++ b/front/vue.config.js @@ -1,6 +1,11 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; -let plugins = [] +const webpack = require('webpack'); + +let plugins = [ + // do not include moment.js locales since it's quite heavy + new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), +] if (process.env.BUNDLE_ANALYZE === '1') { plugins.push(new BundleAnalyzerPlugin()) }