1.1.0 • Published 7 months ago

react-app-singlehtml v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 months ago

react-app-singleHTML

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.

Installation

npm install --save-dev react-app-singlehtml

Use from command line

node cli.js [/your/build/index.html] [targetPath]

Use for building

Add a script in your project package.json

"scripts": {
  "singlepage": "react-app-singlehtml build/index.html build/singlepage.html"
}

Auto build

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

1.1.0

7 months ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago