Firebase hosting is making my js bundle size go to 4.5mb

Viewed 31

I have the following pictures of my storage window compare to my build folder enter image description here

the issue is some answers regarding similar cases, here on stack, say that firebase compresses your bundle before sending to client, in my case it is tripling the size of my js bundle, is this an issue in fire store on at my end , I am building my react app using this script ,

"winBuild": "set "GENERATE_SOURCEMAP=false" && react-scripts build"

npm run winBuild

and then

firestore deploy --only hosting

when I delete those to files from cache my cache storage goes from 6mb to 1.5 .. 2 js files 4.5mb is kind of weird. my site was deployed to heroku and I was serving using node.js express and compress middle ware and didn't have this problem.

0 Answers
Related