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

Minify packages.json with jq #263

Merged
merged 1 commit into from Feb 5, 2019
Merged

Conversation

tilpner
Copy link
Member

@tilpner tilpner commented Feb 5, 2019

Removing whitespace from packages.json (jq -c .) reduces the gzip-ed size from 3.1M to 2.7M, and the extracted size from 62M to 36M, which might help with parsing and decompressing it quicker.

@tilpner
Copy link
Member Author

tilpner commented Feb 5, 2019

I kept the call to mjson.tool, which seems to be used for JSON syntax checking. While jq should also validate the syntax, I don't know if it would report that error as neatly/at all.

@edolstra edolstra merged commit 5df554d into NixOS:master Feb 5, 2019
@tilpner tilpner deleted the packages-compact-json branch February 5, 2019 17:23
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