JSPM

  • Created
  • Published
  • Downloads 276
  • Score
    100M100P100Q96868F
  • License MIT

Hot module replacement for Node.js applications

Package Exports

  • node-hot-loader
  • node-hot-loader/lib/HmrClient
  • node-hot-loader/lib/HmrServer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-hot-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node Hot Loader npm package

Node Hot Loader is a small tool written on ES2015+ for Hot Module Replacement support for Node.js application development with webpack.

Its inspired by kotatsu and webpack-dev-middleware.

Typical use cases for Node Hot Loader are hot-reloaded express application with APIs and frontend serving, i.e. React.

Node Hot Loader support webpack config files with ES2015+ (through babel).

Installation

npm install --save-dev node-hot-loader

or from Git repository:

npm install --save-dev https://github.com/emsoft/node-hot-loader

Usage

Usage: node ./node_modules/node-hot-loader {options}

Options:
  -c, --config       Webpack config file. If not set then search webpack.config.js in root directory.

Example

node ./node_modules/node-hot-loader --config webpack.config.server.babel.js

Known limitations

In your webpack config you must provide main entry with 'server' name. It will be fixed in the feature.

License

MIT (https://opensource.org/licenses/mit-license.php)