We are using create-react-app and would like to generate the index.html file on the server. In order to get code splitting to work, we need to know which code chunks are entrypoints of the React app (to be able to request these from the HTML file).
This PR passes an additional parameter called entrypoints to the generate function, which provides enough information to be able to build such a manifest file.
We are using
create-react-app
and would like to generate theindex.html
file on the server. In order to get code splitting to work, we need to know which code chunks are entrypoints of the React app (to be able to request these from the HTML file).In https://github.com/facebook/create-react-app/issues/5513#issuecomment-486838664, it was suggested to add an
"entrypoints"
key tocreate-react-app
'sasset-manifest.json
file with a list of these chunks (in the order they need to be included).This PR passes an additional parameter called
entrypoints
to thegenerate
function, which provides enough information to be able to build such a manifest file.