Webpack steps to install using the command line

Source: Internet
Author: User

This article brings you the content is about Webpack use command line to install the steps, there is a certain reference value, the need for friends can refer to, I hope to help you.

Weback Command-line installation

The first step:

NPM Install WEBPACK-G           //Global installation

Step Two:

NPM init                  //initialization

Step Three:

NPM Install–save-dev webpack           //project directory installation  –save-dev is used in development,-save to save to Package.json inside

Fourth Step:

Webpack-v        //Check the version number

Extended:

NPM Install when installing NPM package, there are two command parameters can write their information to the Package.json file, one is NPM install–save another is npm Install–save-dev, their surface difference is –save will The package name is added to the Package.json file dependencies key, –save-dev is added to the Package.json file devdependencies under Devdependencies below the module, is the development of our use of
The module under dependencies is the module that we need to rely on when we post it (that is, the dependency module used in production)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.