Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Strip extraneous locale info from moment
Browse files Browse the repository at this point in the history
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: moment/moment#2416
  • Loading branch information
ajhyndman committed Sep 8, 2017
1 parent 33a158b commit dd1dd74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack/base.js
Expand Up @@ -36,6 +36,7 @@ module.exports = function() {
}),
new ExtractTextPlugin('application.css'),
new BabiliPlugin(),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
];

if (isProd) {
Expand Down

0 comments on commit dd1dd74

Please sign in to comment.