Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericclemmons/reload-server-webpack-plugin
Webpack plugin that automatically (re)starts your server between builds.
https://github.com/ericclemmons/reload-server-webpack-plugin
Last synced: 14 days ago
JSON representation
Webpack plugin that automatically (re)starts your server between builds.
- Host: GitHub
- URL: https://github.com/ericclemmons/reload-server-webpack-plugin
- Owner: ericclemmons
- License: mit
- Created: 2015-12-29T03:38:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T17:06:16.000Z (about 4 years ago)
- Last Synced: 2024-10-22T16:26:18.227Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 38
- Watchers: 4
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# reload-server-webpack-plugin
> Webpack plugin that automatically (re)starts your server between builds.
[![travis build](https://img.shields.io/travis/ericclemmons/reload-server-webpack-plugin.svg)](https://travis-ci.org/ericclemmons/reload-server-webpack-plugin)
[![Coverage Status](https://coveralls.io/repos/ericclemmons/reload-server-webpack-plugin/badge.svg?branch=master&service=github)](https://coveralls.io/github/ericclemmons/reload-server-webpack-plugin?branch=master)
[![version](https://img.shields.io/npm/v/reload-server-webpack-plugin.svg)](http://npm.im/reload-server-webpack-plugin)
[![downloads](https://img.shields.io/npm/dm/reload-server-webpack-plugin.svg)](http://npm-stat.com/charts.html?package=reload-server-webpack-plugin)
[![MIT License](https://img.shields.io/npm/l/reload-server-webpack-plugin.svg)](http://opensource.org/licenses/MIT)- - -
### 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
```shell
$ npm install --save-dev reload-server-webpack-plugin
```### Usage
Update your `webpack.config.js`:
```js
module.exports = {
...
plugins: [
new ReloadServerPlugin({
// Defaults to process.cwd() + "/server.js"
script: "path/to/server.js",
}),
],
...
};
```### license
> MIT License 2015 © Eric Clemmons