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.10.0 to 2.11.0

5

client.js
/*eslint-env browser*/
/*global __resourceQuery*/
/*global __resourceQuery __webpack_public_path__*/

@@ -26,2 +26,5 @@ var options = {

}
if (overrides.dynamicPublicPath) {
options.path = __webpack_public_path__ + options.path;
}
}

@@ -28,0 +31,0 @@

12

package.json
{
"name": "webpack-hot-middleware",
"version": "2.10.0",
"version": "2.11.0",
"description": "Webpack hot reloading you can attach to your own server",
"keywords": [
"webpack",
"hmr",
"hot",
"module",
"reloading",
"hot-reloading",
"middleware",
"express"
],
"main": "middleware.js",

@@ -6,0 +16,0 @@ "scripts": {

@@ -5,2 +5,4 @@ # Webpack Hot Middleware

This module is **only** concerned with the mechanisms to connect a browser client to a webpack server & receive updates. It will subscribe to changes from the server and execute those changes using [webpack's HMR api](http://webpack.github.io/docs/hot-module-replacement-with-webpack.html). Actually making your application capable of using hot reloading to make seamless changes is out of scope, and usually handled by another library.
[![npm version](https://img.shields.io/npm/v/webpack-hot-middleware.svg)](https://www.npmjs.com/package/webpack-hot-middleware) [![Build Status](https://img.shields.io/travis/glenjamin/webpack-hot-middleware/master.svg)](https://travis-ci.org/glenjamin/webpack-hot-middleware) [![Coverage Status](https://coveralls.io/repos/glenjamin/webpack-hot-middleware/badge.svg?branch=master)](https://coveralls.io/r/glenjamin/webpack-hot-middleware?branch=master) ![MIT Licensed](https://img.shields.io/npm/l/webpack-hot-middleware.svg)

@@ -87,2 +89,3 @@

* **quiet** - Set to `true` to disable all console logging.
* **dynamicPublicPath** - Set to `true` to use webpack `publicPath` as prefix of `path`. (We can set `__webpack_public_path__` dynamically at runtime in the entry point, see note of [output.publicPath](https://webpack.github.io/docs/configuration.html#output-publicpath))

@@ -108,4 +111,5 @@ ## How it Works

var hotMiddleware = require("webpack-hot-middleware")(compiler);
app.use(function* (next) {
yield require("webpack-hot-middleware")(compiler).bind(null, this.req, this.res);
yield hotMiddleware.bind(null, this.request, this.response);
yield next;

@@ -112,0 +116,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