From c6e03b15c76ea438b77ee140c32319ba8880654b Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Wed, 19 Dec 2018 22:22:51 +0100 Subject: [PATCH] Ignore moment.js locales for smaller build --- front/vue.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/front/vue.config.js b/front/vue.config.js index 69bfdc34ea..97af9f8564 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()) } -- GitLab