reacthtmlpack

Build a single HTML file into a full-featured, production-ready Single Page Application


Keywords
react, html, webpack
License
MIT
Install
npm install reacthtmlpack@1.2.1

Documentation

reacthtmlpack

Build a single HTML file into a full-featured, production-ready Single Page Application

Version Travis CI Quality Coverage Dependencies Gitter

Installation

# next is v2.x.x
npm install reacthtmlpack@next --save
# latest is v1.x.x. Docs are under docs/v1.x.x/

Examples

Take an example from react-bootstrap, you'll have two ways to try it:

With online REPL

  1. Copy the contents of index.html
  2. Paste to the left area of the REPL ⇨⇨⇨ https://reacthtmlpack.tomchentw.com
  3. Click "Submit" and wait ~20s
  4. Voila! Play aroud with your demo component on the right area!

reacthtmlpack.tomchentw.com - demo

Run it on your machine

Save index.html and package.json into the same directory. You can find it under examples/AlertAutoDismissable directory. Then,

npm install
npm start

Visit http://localhost:8080/

Contributing

devDependency Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request