"Webpack"---Module Packager webpack base use---"Midgard"

Source: Internet
Author: User
Tags css preprocessor
001. What is Webpack? What are the roles?

Webpack can be seen as a modular baler: The thing it does is to analyze your project structure, find JavaScript modules and other extension languages (Scss,typescript, etc.) that the browser cannot run directly, and convert and package them into the appropriate format for the browser to use


the way Webpack works is to treat your project as a whole, With a given master file (for example: Index.js), Webpack will start to find all dependent files for your project from this file, use loaders to process them, and finally package them as one (or more) browser-aware JavaScript files.


1, modular, so that we can be complicated to refine the program into small files; 2, similar to typescript this development language based on javascript: enable us to achieve the current version of JavaScript can not be directly used by the features, and then can be converted to JavaScript files to make the browser recognizable; 3, SCSS, CSS Preprocessor for Less


"Webpack"---Module Packager webpack base use---"Midgard"

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.