Gulp Installation and Configuration

Source: Internet
Author: User

1GULP Installation

Install gulp, I will generally choose to install the local

CMD window, CD to your project path, and then type the following code

NPM Install Gulp--save-dev

2 Selecting the Gulp component

Features required for front-end projects:
1, picture (compressed image support JPG, PNG, GIF)
2, Style (support sass simultaneously supports merging, compressing, renaming)
3. JavaScript (check, merge, compress, rename)
4. HTML (compressed)
5, client synchronization refresh display changes
6. The build item currently cleans up files in the publishing environment (keeping the publishing environment clean)

Search for gulp components with Gulp plugins
Gulp-imagemin: Compressing pictures
Gulp-ruby-sass: Support Sass
GULP-MINIFY-CSS: Compressing CSS
Gulp-jshint: Check JS
Gulp-uglify: Compression js
Gulp-concat: Merging Files
Gulp-rename: Renaming files
Gulp-htmlmin: Compressing HTML
Gulp-clean: Empty Folder
Gulp-livereload: Server Control client sync Refresh (with chrome plugin livereload and TINY-LR)

3 Installing the Gulp assembly

Reference link http://www.dbpoo.com/getting-started-with-gulp/

Gulp Installation and Configuration

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.