Webpack Dev Middleware
How to configure Webpack Dev Middleware NES
Minimum Requirements
Please review our Minimum Requirements to ensure a smooth installation. Then follow 3 easy steps:
- Update your
package.json
- Create or update your
.npmrc
file - Install & Run!
Detailed Instructions
Update Your package.json
Substitute the webpack-dev-middleware dependency in your package.json
with the following
{
"devDependencies": {
"webpack-dev-middleware": "npm:@neverendingsupport/webpack-dev-middleware@3.7.3-webpack-dev-middleware-3.7.4"
},
"overrides": {
"webpack-dev-middleware": { ".": "npm:@neverendingsupport/webpack-dev-middleware@3.7.3-webpack-dev-middleware-3.7.4" }
}
}
Note
If this package was listed as a dependency
, then update that field instead of the devDependency
field.
Transitive Dependencies
Your project might not explicitly list webpack-dev-middleware
as a dependency or devDependency in package.json
, but it can still be present in the node_modules directory.
This happens when webpack-dev-middleware
is a transitive dependency — meaning it is not directly imported into your project but is instead included through another dependency or sub-dependency.
To ensure that the HeroDevs NES version is installed correctly, you must manually add webpack-dev-middleware
to both the dependencies and overrides sections of your package.json
file.
Create The .npmrc
Create an .npmrc with the following:
@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/
//registry.nes.herodevs.com/npm/pkg/:_authToken=<YOUR_NES_ACCESS_TOKEN>
Replace <YOUR_NES_ACCESS_TOKEN>
with your access token.
Install your dependencies
npm install
Now you can run your integration tests against webpack-dev-middleware NES
Additional Information
Package Name | Latest NES Version | Direct Download Link |
---|---|---|
webpack-dev-middleware | 3.7.3-webpack-dev-middleware-3.7.4 | Download |