"Translation" Webpack document translation installation

Source: Internet
Author: User
Tags install node

Installation

Nodejs

Install node. js

Nodejs comes with a package management called NPM.

Webpack

Webpack will be installed via NPM:

NPM Install Webpack-g

Webpack has now been installed globally, and the webpack command can be used.

Use Webpack in a project

It's best to use Webpack as a dependency in your project. In this case you can select a local webpack version and will not be forced to use a single global version.

Add a Package.json configuration file by using the following command:

NPM Init

If you don't want to post your project on NPM, the reason for doing so is not important.

Install and add Webpack to Package.json instructions:

NPM Install Webpack--save-dev

Version

There are currently two versions of Webpack available. Stable version and beta version. The beta version is marked with-beta in the version number. The beta version may protect some minor changes or experimental features and lacks testing. View different by Changlog. For serious projects, you should use the stable version:

NPM install [email protected]--save-dev
Dev Tools (development tool)

If you want to use dev tools, you should install it

NPM Install Webpack-dev-server--save-dev

Continue Reading

You can continue reading usage

"Translation" Webpack document translation installation

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.