/gulp-template

Gulp startup template: scss, autoprefixer, babel, sourcemaps, eslint, hot reload and more

Primary LanguageJavaScript

Gulp Template

Features:

  • Scss
  • Autoprefixer
  • Babel 7
  • Sourcemaps for js and css
  • ESlint
  • Hot reload
  • Concatenate js and scss
  • Minifying js and scss (production mode)
  • Optimization for images
  • Auto injected css and js into html

Cross-browser compatibility: IE 11+

How to use

$ npm run watch
$ npm run build

What's Included

  • npm run watch: development mode

    • Sourcemaps for js and css
    • Js is separated for 2 files (user code and frontend libs)
    • ESlint
    • Babel
    • Hot reload
    • Local server
    • Auto injected css and js
  • npm run build: production mode

    • All-in-one file css/js (minified and concatenated)
    • Babel
    • Optimized images
    • Autoprefixer for css
    • Auto injected css and js