Created
April 24, 2018 12:58
-
-
Save erasmo-marin/0e844c410c44374a9f43ed16e824b4f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Moment.js is an extremely popular library that bundles large locale files | |
// by default due to how Webpack interprets its code. This is a practical | |
// solution that requires the user to opt into importing specific locales. | |
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack | |
// You can remove this if you don't use Moment.js: | |
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment