' Use strict ' import gulp from ' Gulp '//Gulp plugin included in import sass from ' Gulp-sass ' Compile Sass file import imagemin from ' gulp-imagemin '//compress png,jpeg,gif and SVG picture resources import Autoprefixer from ' Gulp-autoprefixer '//Add prefix to CSS import notify from ' gulp-notify '//Add text description in console import, Browsersync From ' browser-sync '//Let the browser in real time, quickly respond to file changes (HTML, JS, CSS, sass, less, etc.) and automatically refresh the page. More importantly, Browsersync can be debugged at the same time on the PC, tablet, mobile phone and other devices//browserifyimport browserify from ' browserify '//browser-side Code modularity tool, you can use similar to Node's require () way to organize the browser-side JavaScript code, which is used here to manage dependent import sourcemaps from ' gulp-sourcemaps '///processing JavaScript when generating Sourcemap Import source from ' vinyl-source-stream '//Create an instance of Vinly file with the specified file name (so the Gulp.dest method will use this file name), browserify bundle () Output converted to gulp available vinyl stream import buffer from ' vinyl-buffer '//Convert stream from Vinly object content to Buffer//import babelify fro M ' babelify '//convert ES6 to Es5import concat from ' Gulp-concat ' This plugin is tube merged import del from ' del '
Learn Gulpfile.babel.js Essays