Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active July 10, 2018 12:01
Show Gist options
  • Save jakub-g/968be2d26c863f62b7881583c932463f to your computer and use it in GitHub Desktop.
Save jakub-g/968be2d26c863f62b7881583c932463f to your computer and use it in GitHub Desktop.
jq usage snippets
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