diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-02-13 13:55:24 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-02-13 13:55:24 +0100 |
commit | 11fe20e7cd957afdc1efa8858100764aaf22759d (patch) | |
tree | 0d5bafe58787c222d6d1a4276e51ebf862ad0f50 | |
parent | 532d262f53de71eaf1718ab9668c404f635dffdf (diff) |
Improve readability webpack.config.js
-rw-r--r-- | webpack.config.js | 5 |
1 files changed, 2 insertions, 3 deletions
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/), ], }; |