Gulp Starter Pack
Gulp starter package to use with PostCss or sass, pug, autoprefixer, babel, compile bootstrap, minify assets and perform other common front-end tasks.
Getting stated
Development:
- Install node.js and npm
- Run
npm i
- Run
gulp
(default task) - Work with
/src
folder and get the processing result in /dist
Production
- Run
gulp build
to build minified assets ready to use in production
Tasks
postcss
- including sass like plugins, autoprefixer, SugarSSsass
- compile .sass and .scssbootstrap
- compile custom bootstrap 4 alpha 5 filepug
- compile pug templatesbabel
- compile es2015 javascript code for older browsersuseref
- optimize .css and .jscssnano
- minify css in dest folderimages
- imagemin for graphics optimizationfonts
- copy fonts to dist folderbrowserSync
- serve assets with hot reload from./src
folderclean:dist
- clean dist folder to prevent conflicts before build