javascript - Browserify bundle size with Ampersand / React -
i i've seen far ampersand js & react.
but i've ran deployment issue.
when run test package ampersand (quick start guide) app bundle size 455 kb uncompressed / around 30kb compressed. great.
https://ampersandjs.com/learn/quick-start-guide
when run browserify (same package) it's 955kb uncompressed , 255 compressed (i compress minifyify). problem browserify (uncompressed twice big), it's recommended , love too.
browserify client/app.js -o ./bundle.js browserify client/app.js -p [minifyify --no-map --uglify [ --compress ] ] > bundle.js
so wrong way approach it... can me on this?
same react ... official mi.js twice smaller have when require react
update 1: after research got feeling same modules being loaded twice. i.e. diff. versions etc. did npm dedupe - didn't :(
no issue - found out had gzip disabled on local machine.
awesome tool though: https://github.com/hughsk/disc
Comments
Post a Comment