reload-server-webpack-plugin

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
reload-server-webpack-plugin
1.0.18 years ago8 years agoMinified + gzip package size for reload-server-webpack-plugin in KB

Readme

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