Do not pack any moment.js locales except en.
parent
3bebe84243
commit
591a513511
|
@ -1,3 +1,5 @@
|
||||||
|
const { ContextReplacementPlugin } = require('webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
type: 'react-app',
|
type: 'react-app',
|
||||||
|
|
||||||
|
@ -67,6 +69,10 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
extra: {
|
extra: {
|
||||||
|
plugins: [
|
||||||
|
new ContextReplacementPlugin(/moment[/\\]locale$/, /en\.js/),
|
||||||
|
],
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [
|
extensions: [
|
||||||
'.jsx',
|
'.jsx',
|
||||||
|
|
Loading…
Reference in New Issue