diff --git a/front/vue.config.js b/front/vue.config.js index 69bfdc34eabf43cd61c6a67583dd2a6827e39cd6..97af9f85649bc4140453f89734c59fd3de5dfcec 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()) }