Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Webpack using the command line

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report