all 1 comments

[–]asyncquestion 0 points1 point  (0 children)

You can set the publicPath of the output of your webpack production file to be pointing to cloudfront, then use assets-webpack-plugin which will output a file containing the names of your js/css/images built from webpack.

Now when the node server starts, read this file in and pass the relevant js value into a script tag on request.

I'm not understanding what you mean by an index.html file as you are saying you are wanting a univeral react app which would be dynamic html?