Gulp overviewlearning manual

Published on 2023-04-20 00:10:05 · 中文 · بالعربية · Español · हिंदीName · 日本語 · Русский язык · 中文繁體

What is Gulp?

Gulp is a task runner that uses Node.js as a platform. Gulp uses purely JavaScript code to help run front-end tasks and large web applications. It builds system automation tasks such as CSS and HTML minification, connecting library files, and compiling SASS files. These tasks can be run on the command line using a shell or Bash script.

Why use Gulp?

It is shorter, simpler, and faster compared to other task runners. Use SASS and LESS as CSS preprocessors. Automatically refresh the page after editing the source file. Easy to understand and build a Gulpfile .js because it uses pure JavaScript code to build tasks.

history

All documentation for Gulp is included in the CC0 license. Originally, Gulp v1.0.0 was released on January 15, 2015, and the current version of Gulp is v3.9.0

peculiarity

Provides zoom-out and tandem. Use pure JavaScript code. Convert LESS or SASS to CSS compilation. Use the Node.js platform to manage in-memory file operations and improve speed.

advantage

Huge speed advantage over any other task runner Easy to code and understand. Easy to test the Web application: The plugin is easy to use and is designed to do one thing at a time. Repeat repetitive tasks such as shrinking style sheets, compressing images, and so on.

shortcoming

Compared to Grunt, the dependencies are more numerous and new. With the Gulp plugin, you can't perform multiple tasks. The configuration is not as clean as Grunt.