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 unnecessary moment.js locales from bundle #537

Merged
merged 2 commits into from
Nov 28, 2019

Conversation

ashmaroli
Copy link
Member

Currently, there is no provision to use the moment.js locales via the admin interface.
So, bundling them in the production build can be avoided.

The locales can be easily removed by moment-locales-webpack-plugin

Bundle Analyses (development build)

master | Stat size: 5.86 MB

master-bundle

with MomentLocalesPlugin | Stat size: 5.47 MB

pr-bundle

@ashmaroli ashmaroli merged commit bc00ee1 into jekyll:master Nov 28, 2019
@ashmaroli ashmaroli deleted the moment-locales-webpack-plugin branch November 28, 2019 10:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants