This is a gulp configuration process that I learned from CSS Tricks - Gulp For Beginners Tutorial. The original repo can be found here;
- sass
- autoprefixer
- browser-sync
- JS -> concatenation (useref) and minification (uglify)
- CSS -> concatenation (useref) and minification (cssnano)
- Image optimization (imagemin)
This build also includes a pre-configuration (commented out) for using gulp-responsive to generate responsive images. However for each project a proper output must be written.
gulp
=> compiles sass, add autoprefixers and starts a server with browser-sync.build
=> runs all optimization tasks and create a folder structure inside the dist directory