Skip to content

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

License

Notifications You must be signed in to change notification settings

doyakovlev/reload-server-webpack-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%