Do not pack any moment.js locales except en.

master
Icedream 2017-08-20 03:55:28 +02:00
parent 3bebe84243
commit 591a513511
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
const { ContextReplacementPlugin } = require('webpack');
module.exports = {
type: 'react-app',
@ -67,6 +69,10 @@ module.exports = {
},
extra: {
plugins: [
new ContextReplacementPlugin(/moment[/\\]locale$/, /en\.js/),
],
resolve: {
extensions: [
'.jsx',