Only include en locale for moment.js to reduce build size

This commit is contained in:
Jori Lallo
2016-05-23 23:27:43 -07:00
parent 4c788d1578
commit 46c8af7a9d

View File

@ -48,5 +48,6 @@ module.exports = {
new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!isomorphic-fetch'
}),
new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en)$/)
]
};