Hacker News new | ask | show | jobs
by cobralibre 3401 days ago
Webpack supports the former if you use [hash] (or [chunkhash]) in the output filename. [1] This is what create-react-app uses. [2]

[1] https://webpack.js.org/configuration/output/#output-filename

[2] https://github.com/facebookincubator/create-react-app/blob/m...

1 comments

Yep, the tricky part is just rewriting your HTML so that it includes the right file. However, it looks look my comment was incorrect and most frameworks have considered that issue. Neutrino and create-react-app use html-webpack-plugin.

https://github.com/facebookincubator/create-react-app/blob/m...