Do not pack any moment.js locales except en.
parent
3bebe84243
commit
591a513511
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue