A simple example for getting start with gulp.
npm install
# for development
# include starting server and watching files
gulp
# for production
# html, css, js and images are minified
gulp build
gulp version : 3.9.1
Feature | Packages Used |
---|---|
HTML | gulp-pug |
CSS | gulp-sass, gulp-postcss(autoprefixer, cssnano) |
JavaScript | gulp-babel(babel-core, babel-preset-es2015), gulp-concat, gulp-order, gulp-uglify |
Images | gulp-imagemin, gulp-favicons |
Server | browser-sync |
Other Utils | gulp-clean, gulp-if, gulp-plumber, gulp-sequence, gulp-sourcemaps, minimist, require-dir, gulp-util |