Skip to content

Instantly share code, notes, and snippets.

@asolove
Created April 21, 2016 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asolove/782d9aefc0ec517c9ddf4c6bc483ec6a to your computer and use it in GitHub Desktop.
Save asolove/782d9aefc0ec517c9ddf4c6bc483ec6a to your computer and use it in GitHub Desktop.
Web pack bundle size
npm install -g webpack-bundle-size-analyzer
edit gulp/webpack.config.production.js # remove all the lines but the app bundle you're interested in
webpack --config gulp/webpack.config.production.js --json | webpack-bundle-size-analyzer > analysis
# This generates a large text file of all nested dependencies, by file size.
# I found several large dependencies in cart that I was no longer using, totalling 300kb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment