Learn Gulpfile.babel.js Essays

Source: Internet
Author: User

' 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

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.