aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/),
],
};