The relationship between Gulp/grunt and Browserify/webpack

Source: Internet
Author: User

First, Gulp/grunt is a building tool, can be combined with a variety of plugins do JS compression, CSS compression, less compiled or even automatically refresh the page to replace the manual implementation of these tedious work.

Second, Browserify/webpack and Seajs/requirejs are the same JS modular scheme. The two categories also differ:

  1. Seajs/requirejs: is an online "compile" module that is equivalent to loading a CMD/AMD interpreter on the page. In this way the browser knows define, exports, module these things. Modularity is also achieved.
  2. Webpack/browserify: is a pre-compiled module scheme, which is more intelligent than above. Here take Webpack as an example. First, it is precompiled and does not need to load the interpreter in the browser. In addition, you write in the local JS, regardless of the amd/cmd/es6 style of modularity, it can be recognized, and compiled into the browser to understand the JS.

Summary: Gulp/grunt belongs to Tools, while Webpack is a modular solution. Gulp can also configure Seajs, Requirejs, and even webpack plugins.

The relationship between Gulp/grunt and Browserify/webpack

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.