From 11fe20e7cd957afdc1efa8858100764aaf22759d Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 13 Feb 2018 13:55:24 +0100 Subject: Improve readability webpack.config.js --- webpack.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index cf63880..0bf982a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,10 +18,9 @@ const js = { }, ], }, - resolve: { - extensions: ['.js', '.jsx'], - }, plugins: [ + // Only load the dutch local for moment.js + // https://stackoverflow.com/questions/25384360/how-to-prevent-moment-js-from-loading-locales-with-webpack#25426019 new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /nl/), ], }; -- cgit v1.1