Skip to content

Commit 637517b

Browse files
committed
delete momentjs locale files
1 parent 75d1585 commit 637517b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ module.exports = {
203203
];
204204
},
205205
plugins: [
206+
// see http://stackoverflow.com/questions/25384360/how-to-prevent-moment-js-from-loading-locales-with-webpack
207+
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
206208
// Makes the public URL available as %PUBLIC_URL% in index.html, e.g.:
207209
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
208210
// In production, it will be an empty string unless you specify "homepage"

0 commit comments

Comments
 (0)