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