aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-13 13:55:24 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-13 13:55:24 +0100
commit11fe20e7cd957afdc1efa8858100764aaf22759d (patch)
tree0d5bafe58787c222d6d1a4276e51ebf862ad0f50
parent532d262f53de71eaf1718ab9668c404f635dffdf (diff)
Improve readability webpack.config.js
-rw-r--r--webpack.config.js5
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/),
],
};