Express-Dev
An express wrapper which takes in a webpack config and returns you an express app with webpack dev middleware and webpack hot middleware in the stack.
expressDev = require 'express-dev'config = require './config/webpack.dev.config'app = expressDevconfig
You can add your own middlewares to this app instance just as you would with a standard express instance.
An example of it in usage within an app would look like this
JS Example
;;;; const app = ;app;app; const router = ;router; app;app;
Coffeescript example
path = require 'path' require 'express' expressDev = require 'express-dev'config = require './config/webpack.dev.config' app = expressDevconfigappset 'views'pathjoinprocesscwd'src''views'appset 'view engine''jade' router = routerget'/' resrender 'index' appuserouterapplisten3000-> consolelog 'listening on 3000'
Now you can dev your front end code with hot module reloading if it can do it, or live reloading if it cant.