reacthtmlpack

Added the missing piece of treating `index.html` as entry point in webpack bundles.

this package has been deprecated
Last updated 4 years ago by tomchentw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reacthtmlpack 
SYNC missed versions from official npm registry.

reacthtmlpack

Added the missing piece of treating index.html as entry point in webpack bundles.

Version Travis CI Quality Coverage Dependencies Gitter

Installation

npm install reacthtmlpack --save

I came here because I want to...

The Problem

Added the missing piece of treating index.html as entry point in webpack bundles.

Slightly Long Version

When I tried to develop a static hosted website (e.g. gh-pages) using React and webpack, I found it annoying that webpack doesn't support index.html as entry point natively. People feel the same way, too. They've developed many tools out there to approach the problem. However, all of them has certain pitfalls that doesn't match my needs:

  • extracted css from js: common pattern for React application
  • cache busting: generating hashed url to the compiled assets by webpack
  • server rendering: rendering React component statically as part of html template
  • server bundling: generating assets using target: "node" that will be used in server rendering

Read more about server bundling

Who Should Use This?

You have

  • a static hosted website by a web server like nginx/apache.
  • developed a react component and want to create a demo page for it on gh-pages

The Solution

Create a CLI reacthtmkpack that compiles html files into assets

  • Use Babel, React, Webpack and Webpack-Dev-Server. All your favorite ones
  • Write the html template using React (with Babel support). No other template library
  • Declare <script> or <link> dependencies of your template using React Components
  • Simple and Explicit Command Line Interface
  • HMR, react-hot-loader supported without hassle

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

Current Tags

  • 1.2.1                                ...           latest (4 years ago)
  • 2.1.6                                ...           next (4 years ago)

23 Versions

  • 2.1.6 [deprecated]           ...           4 years ago
  • 2.1.5 [deprecated]           ...           4 years ago
  • 2.1.4 [deprecated]           ...           4 years ago
  • 2.1.3 [deprecated]           ...           4 years ago
  • 2.1.2 [deprecated]           ...           4 years ago
  • 2.1.1 [deprecated]           ...           4 years ago
  • 2.1.0 [deprecated]           ...           4 years ago
  • 2.0.2 [deprecated]           ...           4 years ago
  • 2.0.1 [deprecated]           ...           4 years ago
  • 2.0.0 [deprecated]           ...           4 years ago
  • 1.2.1 [deprecated]           ...           4 years ago
  • 1.2.0 [deprecated]           ...           4 years ago
  • 1.1.0 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
  • 0.4.0 [deprecated]           ...           4 years ago
  • 0.3.3 [deprecated]           ...           4 years ago
  • 0.3.2 [deprecated]           ...           4 years ago
  • 0.3.1 [deprecated]           ...           4 years ago
  • 0.3.0 [deprecated]           ...           4 years ago
  • 0.2.3 [deprecated]           ...           4 years ago
  • 0.2.2 [deprecated]           ...           4 years ago
  • 0.2.1 [deprecated]           ...           4 years ago
  • 0.2.0 [deprecated]           ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (16)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |