avoid loading moment locales

This commit is contained in:
Matteo Pagliazzi 2019-10-02 18:30:41 +02:00
parent 823a1034e0
commit 9a2bb981a9

View file

@ -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 => {