Created
April 21, 2016 18:17
-
-
Save asolove/782d9aefc0ec517c9ddf4c6bc483ec6a to your computer and use it in GitHub Desktop.
Web pack bundle size
This file contains hidden or 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
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