From 46c8af7a9d0b9bddbd4406ed5b5d2c07f3e8e9c8 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 23 May 2016 23:27:43 -0700 Subject: [PATCH] Only include en locale for moment.js to reduce build size --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index bc6be14a6..58808e4b8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -48,5 +48,6 @@ module.exports = { new webpack.ProvidePlugin({ 'fetch': 'imports?this=>global!exports?global.fetch!isomorphic-fetch' }), + new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en)$/) ] }; \ No newline at end of file