Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove un-used locals from moment #81

Closed
falconmick opened this issue Aug 2, 2017 · 0 comments
Closed

Remove un-used locals from moment #81

falconmick opened this issue Aug 2, 2017 · 0 comments
Assignees

Comments

@falconmick
Copy link
Contributor

moment is currently 1/3 of our package size with 4/5 of that being locale files... According to this post you can remove all locals except the ones you want via:

new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/)

Might be worth waiting for #80 to have it's PR complete as analysing that it's removed the locals we don't use could be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants