From dd1dd74bfbc4e64b5305e8c4b52ff4422c485de8 Mon Sep 17 00:00:00 2001 From: Andrew Hyndman Date: Sat, 9 Sep 2017 02:08:55 +1000 Subject: [PATCH] Strip extraneous locale info from moment By default, the node bundle for moment includes internationalization data and functionality for ~100 locales. We aren't using those, so strip them from the webpack output. See: https://github.com/moment/moment/issues/2416 --- webpack/base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack/base.js b/webpack/base.js index b7793f6..114ae0a 100644 --- a/webpack/base.js +++ b/webpack/base.js @@ -36,6 +36,7 @@ module.exports = function() { }), new ExtractTextPlugin('application.css'), new BabiliPlugin(), + new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), ]; if (isProd) {