Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tinper-uba/koa-uba-dev-middleware
- Owner: tinper-uba
- License: mit
- Created: 2017-12-22T04:21:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T05:01:04.000Z (almost 7 years ago)
- Last Synced: 2024-04-26T02:40:39.625Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/koa-uba-dev-middleware
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)