-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack-bundle-analyzer to debug FAB size? #364
Comments
https://github.com/vercel/next.js/tree/canary/packages/next-bundle-analyzer shows SOME of the modules involved (i.e. removing iconv-lite indeed shrank the bundle) but for some reason it covers only 1.5M instead of 7M |
@wizzard0 working on a new version, seeing sizes now ~1.7mb unminified, 800-900k minified. Can you let me know if it's compatible? Instructions:
Note existing size of server.js
Did a) build succeed and b) how big is server.js now? If it did build, does
What's the final minified size? |
oops, for once I decided to give up on next and removed the repo, so no longer have the folder which produced 7M server.js :/ with another repo, I get 4.41M server.js > 2.36M after update > 1.2M with minification, but a) succeeds
So it does not start at all. Also would appreciate equivalent npm lines because maybe it's because I use npm everywhere else and maybe messed up smth with mixing yarn\npm commands |
Oh. Found that repository.
Command-line deploy with |
Commented out
wow. after commenting that one out too, it deploys! and dynamic routes work! how do I monkey-patch this?:) |
it's been a while... any updates? |
Right now an empty Next 10.0.0.8 project with target:serverless ends up with 7.3M server.js which fails upload.
For optimizing client JS size I found https://www.npmjs.com/package/webpack-bundle-analyzer to be very helpful.
Any chance of something similar for FAB?
The text was updated successfully, but these errors were encountered: