-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate html-manifest.json of html assets. #5955
Conversation
Deploy preview for gallant-davinci-8f9bd9 ready! Built with commit df2f0ed https://deploy-preview-5955--gallant-davinci-8f9bd9.netlify.com |
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This pull request has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. Thank you for your contribution! |
Shouldn't be stale. Something like this is really useful for people that want to integrate CRA in another application. Please open again, or provide feedback 😁 |
We are also needing this in order to construct an HTML file dynamically outside of the react environment. This is a huge step towards making CRA compatible with multiple different environments. Please reopen! |
It's non-trivial to reconstruct html page using
asset-manifest.json
currently. See: #5513This change adds alternative asset file for that purpose.
ExtractHtmlManifestPlugin
extracts html page assets as defined here https://github.com/jantimon/html-webpack-plugin/blob/master/lib/hooks.js#L21 to separate filehtml-manifest.json
. This file can be used to reconstruct html page.example of generate html-manifest.json: