4 ms·
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/c
by cobralibre 10y 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 https://webpack.js.org/configuration/output/#output-filename
[2] https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/config/webpack.config.prod.js#L78 https://github.com/facebookincubator/create-react-app/blob/m...
- amk_ 10y agoYep, 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/master/packages/react-scripts/config/webpack.config.prod.js#L232-L248 https://github.com/facebookincubator/create-react-app/blob/m...