Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

webpack-dev-middleware 6.1.1

A development middleware for webpack
Package summary
Share
2
issues
2
high severity
vulnerability
2
3
licenses
14
MIT
2
Unlicense
1
BSD-2-Clause
Package created
8 Aug 2012
Version published
16 May 2023
Maintainers
4
Total deps
17
Direct deps
5
License
MIT

Issues

2

2 high severity issues

high
Recommendation: Upgrade to version 6.1.2 or later
via: webpack-dev-middleware@6.1.1
Recommendation: Upgrade to version 6.1.2 or later
via: webpack-dev-middleware@6.1.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
14 Packages, Including:
@types/json-schema@7.0.15
ajv-formats@2.1.1
ajv-keywords@5.1.0
ajv@8.13.0
colorette@2.0.20
fast-deep-equal@3.1.3
json-schema-traverse@1.0.0
mime-db@1.52.0
mime-types@2.1.35
punycode@2.3.1
range-parser@1.2.1
require-from-string@2.0.2
schema-utils@4.2.0
webpack-dev-middleware@6.1.1

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
2 Packages, Including:
fs-monkey@1.0.6
memfs@3.5.3

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
uri-js@4.4.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of webpack-dev-middleware 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
colorette2.0.204.94 kBMIT
prod
memfs3.5.338.43 kBUnlicense
prod
mime-types2.1.355.46 kBMIT
prod
range-parser1.2.13.52 kBMIT
prod
schema-utils4.2.015.34 kBMIT
prod

Visualizations

Frequently Asked Questions

What does webpack-dev-middleware do?

Webpack-dev-middleware is a development middleware designed to be used with webpack. It is useful in development settings due to several key features. Firstly, it handles files in memory rather than writing them to your disk. It also delays requests when files change in watch mode until the compiling process is complete. Lastly, it supports hot module reload (HMR), a valuable feature during development.

How do you use webpack-dev-middleware?

To start using webpack-dev-middleware, you need to install the module using npm, ideally as a dev dependency. The code sample below illustrates a typical usage scenario in Node.js with Express.

const webpack = require("webpack");
const middleware = require("webpack-dev-middleware");
const compiler = webpack({
  // your webpack configuration goes here
});
const express = require("express");
const app = express();

app.use(
  middleware(compiler, {
    // options for webpack-dev-middleware go here
  })
);

app.listen(3000, () => console.log("Server listening on port 3000!"));

In this example, webpack-dev-middleware is being used as an Express middleware by calling app.use(). It requires two arguments - a webpack compiler with your configuration and an options object for webpack-dev-middleware.

Where are the webpack-dev-middleware docs?

The documentation for webpack-dev-middleware can be found attached to the webpack.js.org website. The documentation provides a detailed explanation about the usage, API, options, and some FAQs about webpack-dev-middleware. Be sure to check out the documentation for more details and usage examples.