Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tinper-uba/koa-uba-dev-middleware

koa2 dev-middleware for uba-server
https://github.com/tinper-uba/koa-uba-dev-middleware

Last synced: about 1 month ago
JSON representation

koa2 dev-middleware for uba-server

Awesome Lists containing this project

README

        

# koa-uba-dev-middleware

## Install

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

## How to use?

```js
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](https://www.npmjs.com/package/webpack-dev-middleware)