Socket
Socket
Sign inDemoInstall

webpack-hot-middleware

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-hot-middleware - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0

9

client-overlay.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc