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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -