Last active
July 10, 2018 12:01
-
-
Save jakub-g/968be2d26c863f62b7881583c932463f to your computer and use it in GitHub Desktop.
jq usage snippets
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
cat webpack.json | jq '.chunks[] | {id:.id, parents:.parents, modules:.modules} | del(.modules[].source) | del(.modules[].optimizationBailout)' | less > ../../player-bundle-analysis/webpack.json | |
cat ../../player-bundle-analysis/webpack.json | jq '{(.id):(.modules)}' | jq -n '[inputs]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment