How to install Webpack using the command line
This article mainly introduces the Webpack how to use the command line for installation related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this Webpack how to use the command line to install the article will have a harvest, let's take a look.
Weback command line installation
Step one:
Global installation of npminstallwebpack-g//
Step 2:
Npminit// initialization
Step 3:
Installation of the npminstall-save-devwebpack// project directory-save-dev is used in development,-save is saved to package.json
Step 4:
Webpack-v// checks the version number
Extend:
When npminstall installs the npm package, there are two command parameters that can write their information into the package.json file, one is npminstall-save and the other is npminstall-save-dev. The apparent difference between them is that-save adds the dependent package name to the package.json file under the dependencies key, and-save-dev adds to the package.json file the module listed under the devDependencies under the devDependencies key, which is used in our development.
The module under dependencies is the module we still need to rely on after release (that is, the dependent module used in production).
This is the end of the article on "how to install Webpack using the command line". Thank you for reading! I believe you all have a certain understanding of "how to use the command line to install Webpack". If you want to learn more, you are welcome to follow the industry information channel.