Skip to content

Simple way to enable hot-reloading in your Express applications.

License

Notifications You must be signed in to change notification settings

ericclemmons/express-hot-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-hot-middleware

Simple way to enable hot-reloading in your Express applications.

travis build version downloads MIT License

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

About

Simple way to enable hot-reloading in your Express applications.

Resources

License

Stars

Watchers

Forks

Packages