diff --git a/packages/webapp/webpack.common.js b/packages/webapp/webpack.common.js index 4cfa9d02..02d51bc2 100644 --- a/packages/webapp/webpack.common.js +++ b/packages/webapp/webpack.common.js @@ -1,7 +1,11 @@ const path = require('path'); +const webpack = require('webpack') + const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); +webpack + module.exports = { entry: { app: path.join(__dirname, 'src', 'index.tsx') @@ -60,6 +64,10 @@ module.exports = { ] } }] - }) - ] + }), + // Ignore all locale files of moment.js + new webpack.ContextReplacementPlugin( + /moment[\/\\]locale$/, + /de$|es$|fr$/ + )] } \ No newline at end of file