
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-app-singlehtml
Advanced tools
Replaces JS/CSS references with contents of file, for example takes a create-react-app dist index.html and puts all into a single HTML page
Packs a build version of create-react-app into a single self-contained HTML file with no external references. The output can be used in some restricted sytems. i.e. Sharepoint, NetSuite.
It replaces references to Javascript and CSS with their codes and removes manifest, favicon and maps.
This library uses streams and keeps minimal info in memory.
npm install --save-dev react-app-singlehtml
node cli.js [/your/build/index.html] [targetPath]
Add a script in your project package.json
"scripts": {
"singlepage": "react-app-singlehtml build/index.html build/singlepage.html"
}
If you want to use as part of your create-react-app or other app worflow: Modify the package.json
"scripts": {
"postbuild": "react-app-singlehtml build/index.html build/singlepage.html"
}
Update to use your actual paths
FAQs
Replaces JS/CSS references with contents of file, for example takes a create-react-app dist index.html and puts all into a single HTML page
We found that react-app-singlehtml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.