express-hot-middleware
v1.0.2
Published
Simple way to enable hot-reloading in your Express applications.
Downloads
29
Maintainers
Readme
express-hot-middleware
Simple way to enable hot-reloading in your Express applications.
Installation
$ npm install --save express-hot-middleware
Usage
import express from "express";
import hot from "express-hot-middleware";
export default express()
.use(hot(module, () => [
require("./middleware/statics"),
require("./middleware/session"),
require("./middleware/auth"),
require("./middleware/api"),
require("./middleware/view"),
]))
;
Don't worry about not using import
here for ES6 modules. If you export default
, it will be used.
License
MIT License 2016 © Eric Clemmons