Skip to content

tinper-uba/koa-uba-dev-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-uba-dev-middleware

Install

$ npm install koa-uba-dev-middleware -S

How to use?

const Koa = require("koa");
const app = new Koa();
const webpack = require("webpack");
const devMiddleware = require("koa-uba-dev-middleware");
const webpackConfig = require("./webpack.dev.config");

const compiler = webpack(webpackConfig);
app.use(devMiddleware(compiler, {
  stats: {
    colors: true
  }
}));

app.listen(5000, () => {
  console.log("webpack server done.");
});

API

webpack-dev-middleware

Releases

No releases published

Packages

No packages published