lostcarpark / conclar

ConClár Programme Guide in ReactJS
MIT License
11 stars 12 forks source link

production option: minify bundle.js #122

Closed offbyone closed 2 years ago

offbyone commented 2 years ago

While we definitely want the full code in development, in production we should minify bundle.js which is currently 9.38MB over the wire. That's cacheable, but it's expensive.

(related, we should make sure we have good cache control headers on it so that our updates go out properly)

lostcarpark commented 2 years ago

It looks like the npm run build step isn't getting run when moving the application into the docker container. That includes a minification step, and should end up with the bundled JavaScript being called something like main.9364da6e.js. On my test site that's ending up a little under 1MB. That should help improve the startup time a bit.

LVerhulst4321 commented 2 years ago

This was an issue with the way I was deploying the docker container that I set up for Chicon 8.