How to install the webpack-dev-server? corresponding to the specified version of webpack

now you are working on a project with webpack@3.10.0, and you need to install webpack-dev-server.

if I install npm I webpack-dev-server directly, I will install the latest version of webpack-dev-server, and remind me to update webpack above version 4.

and I don"t want to change the webpack version of the project, so how do I install it? I don"t know which version to install.

The latest webpack-dev-server corresponding to

webpack3 is 2.11.3
clipboard.png


https://www.npmjs.com/package... Current Tags:

clipboard.png

.

generally specify a version with @ version number after installation, such as: npm i webpack-dev-server@3.1.9, version number address: webpack-dev-server

Menu