DEV Community

Discussion on: How to gzip and deploy your front end assets to Amazon S3 with Webpack

Collapse
 
vivek8568 profile image
vivek8568

Hi Austin, This is a great article but I have one doubt. How would index.html would know that it has to point to bundle.js.gz instead of bundle.js. As I'm using split chunks, so my bundle is pointing to all chunks.js files instead of individual chunks.js.gz.
Is this tutorial using any server like express or something else. As I want to serve my react build from S3 only(static hosting). Would you please help me out?

Collapse
 
sifloz profile image
Héctor Sifloz

Hi,
I have the same concern. Did you managed how to do this?

I'm currently developing a React app with create-react-app which is hosted in AWS. I created chunks.js.gz using webpack but I have no idea how to serve using AWS in order to load those gz compressed files instead of just chunks.js.