reload-server-webpack-plugin
Webpack plugin that automatically (re)starts your server between builds.
Last updated 5 years ago by ericclemmons .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reload-server-webpack-plugin 
SYNC missed versions from official npm registry.

reload-server-webpack-plugin

Webpack plugin that automatically (re)starts your server between builds.

travis build Coverage Status version downloads MIT License


Why?

  • Remove your dependency on nodemon, forever, pm2, or similar.
  • This works better from a "cold start" when your server hasn't been built yet.
  • Fewer issues with websockets & hot-module reloading.

Installation

$ npm install --save-dev reload-server-webpack-plugin

Usage

Update your webpack.config.js:

module.exports = {
  ...
  plugins: [
    new ReloadServerPlugin({
      // Defaults to process.cwd() + "/server.js"
      script: "path/to/server.js",
    }),
  ],
  ...
};

license

MIT License 2015 © Eric Clemmons

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 15
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |