Permalink
Browse files

refactor(date): only load specific moment.js locales

  • Loading branch information...
axe312ger committed Sep 18, 2017
1 parent 641e89f commit c689299bed0388fa0b17ad920f0e54845461fb58
Showing with 2 additions and 1 deletion.
  1. +2 −1 webpack.config.js
View
@@ -131,7 +131,8 @@ const webpackConfig = {
new Webpack.DefinePlugin({
APP_CONFIG: JSON.stringify(config)
}),
new ExtractTextPlugin('styles.css')
new ExtractTextPlugin('styles.css'),
new Webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /(en|de)(?!-)/)
]
}

0 comments on commit c689299

Please sign in to comment.