Skip to content

Instantly share code, notes, and snippets.

@xjamundx
Last active April 7, 2017 09:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xjamundx/7a0c98ce8e1f0d26b8d9d04486fe2f16 to your computer and use it in GitHub Desktop.
Save xjamundx/7a0c98ce8e1f0d26b8d9d04486fe2f16 to your computer and use it in GitHub Desktop.
webpack --display-modules | awk '{print $3$4" "$2}' | grep -v bytes | sort -n | tail -100
@tmcgann
Copy link

tmcgann commented Jul 22, 2016

Since large file sizes are what you're after, could always reverse sort and grab from top...

npm run build | awk '{print $3$4" "$2}' | grep -v bytes | sort -nr | head -100

Doesn't really change it much. Maybe more preference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment