How to use the Webpack Packaging compression tool

Source: Internet
Author: User

Specific Use method reference source http://www.cnblogs.com/Leo_wl/p/4793722.html

Places to be aware of:

First, webpack in the NODEJS environment operation

Two, each directory must have a webpack.config.js

Third, can be installed through the configuration of Package.json files required plug-ins, with NPM install can be installed

Iv. commands of the Webpack:

    1. Webpack//The most basic way to start webpack
    2. WEBPACK-W//provide watch method; package updates in real time
    3. WEBPACK-P//Compress the packaged files
    4. WEBPACK-D//provide source map, convenient mode code
    5. Webpack--config webpack.config.js//Run the Webpack.config.js file separately, which can be used when running multiple projects

How to use the Webpack Packaging compression tool

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.