From 9a2bb981a9b536ab53187935818393eacba14b1e Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 2 Oct 2019 18:30:41 +0200 Subject: [PATCH] avoid loading moment locales --- website/client/vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/client/vue.config.js b/website/client/vue.config.js index 1a856505a1..092807602d 100644 --- a/website/client/vue.config.js +++ b/website/client/vue.config.js @@ -37,7 +37,8 @@ envVars module.exports = { configureWebpack: { plugins: [ - new webpack.EnvironmentPlugin(envObject) + new webpack.EnvironmentPlugin(envObject), + new webpack.ContextReplacementPlugin(/moment[\\/]locale$/, /^\.\/(NOT_EXISTING)$/), ], }, chainWebpack: config => {