webpack-hot-middleware
Advanced tools
Comparing version 2.5.1 to 2.6.0
@@ -7,4 +7,7 @@ /*eslint-env browser*/ | ||
clientOverlay.style.color = '#000'; | ||
clientOverlay.style.whiteSpace = 'pre'; | ||
clientOverlay.style.fontFamily = 'monospace'; | ||
clientOverlay.style.position = 'fixed'; | ||
clientOverlay.style.zIndex = 9999; | ||
clientOverlay.style.padding = '10px'; | ||
clientOverlay.style.left = 0; | ||
@@ -25,5 +28,5 @@ clientOverlay.style.right = 0; | ||
lines.forEach(function(msg) { | ||
var pre = document.createElement('pre'); | ||
pre.textContent = msg; | ||
clientOverlay.appendChild(pre); | ||
var div = document.createElement('div'); | ||
div.textContent = msg; | ||
clientOverlay.appendChild(div); | ||
}); | ||
@@ -30,0 +33,0 @@ }; |
{ | ||
"name": "webpack-hot-middleware", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"description": "Webpack hot reloading you can attach to your own server", | ||
@@ -5,0 +5,0 @@ "main": "middleware.js", |
@@ -116,2 +116,13 @@ # Webpack Hot Middleware | ||
### Use with koa | ||
```js | ||
var app = koa(); | ||
app.use(function* (next) { | ||
yield require("webpack-hot-middleware")(compiler).bind(null, this.req, this.res); | ||
yield next; | ||
}); | ||
``` | ||
## License | ||
@@ -118,0 +129,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32357
686
132