You are currently viewing Gulp Task Automation for Beginners

Gulp Task Automation for Beginners

You will learn how automate all your web development tasks with Gulp. In this video we will be compiling Sass files to CSS and then minifying the CSS for production.

🔗Install node:
🔗Install Gulp:

Install Gulp Packages:
🔗Css uglify:

🎶Music by: Nicolai Heidlas Music – With you

⭐️Tutorial from iEatWebsites. Check out their channel for more great tutorials:

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:


This Post Has 25 Comments

  1. Rafi Miazi

    Just copy and paste the command in gitbash " npm install –global gulp-cli "

  2. Hi, for 2020 gulpfile.js should be upgraded to :

    var gulp = require('gulp');
    var sass = require('gulp-sass');
    var uglifycss = require('gulp-uglifycss');
    var clean = require('gulp-clean');

    sass.compiler = require('node-sass');

    gulp.task('sass', function () {
    return gulp.src('./sass/*.scss')
    .pipe(sass().on('error', sass.logError))

    gulp.task('css', function () {
    return gulp.src('./css/*.css')
    "maxLineLen": 80,
    "uglyComments": true

    gulp.task('clean', function () {
    return gulp.src('dist', {read: false})

    gulp.task('run', gulp.series('sass','css'));
    gulp.task('watch', function(){'./sass/*.scss', gulp.series('sass'));'./css/*.css', gulp.series('css'));

    /*'P.S. If you will run command "gulp" command in your terminal or cmd, gulpfile will run few tasks :
    1) "sass" – will compile your sass code into css code
    2) "css'" – will compile your css code to dist folder, these commands will be re-runs till you push "Ctrl+C" in your terminal, thanks to "watch" command*/

  3. Anjum Rizwi

    Excellent tutorial for beginners and who is new in sass

  4. Eddie - E11World

    Great video.
    Can you show us how to use purgecss or something similar with gulp (trying to use it but I have paths as var and all css stuff in function so the usual pipe content thing they have in documentation is not working for me). Thank you so much

  5. Mario Ramalho

    Just as a suggestion, there is a extension on VS Code editor that just works fine without so many configurations. So try it out.

  6. Lucas Simoni

    💁‍♂️ "npm init –y" instead of hitting enter several times. It will enter the default values for you without prompting to change it.

  7. mau BG

    why would they use gulp if they dont know what nodejs is?

  8. Daniel Krajnik

    9:30 wouldn't **/*.sass be the same as *.sass ? (plus recurse into any other folders)

  9. Joseph Joy

    clear instructions and nice tutorial Good Job

  10. dennis mohaaa

    Incase you are using gulp 4 and you get errors, then this is how you go about it

    const gulp = require('gulp');
    const sass = require('gulp-sass');
    var uglifycss = require('gulp-uglifycss');

    return gulp.src('./sass/index.scss')

    gulp.task('css', function (done) {
    // "maxLineLen": 80,
    "uglyComments": true


    gulp.task('watch',function(){'./sass/index.scss',gulp.series('sass'))'./css/*.css', gulp.series('css'));


  11. Ganesh Kolase

    Thanks for the video. Really great demonstration and explanation

  12. This is how we setup our project

    npm install gulp-cli -g
    npm install gulp -D

    Then go to your project folder

    npm init -y
    touch gulpfile.js

    We are ready to proceed 🙂

    To look for gulp commands and help
    gulp –help

  13. Mattias

    I don't get it. So gulp(1) is just a bad alternative to the standard tool make(1), with built in inotifywait(1)? Why not just make(1) and inotifywait(1), or extend make(1) with inotify(7) support?

  14. Dave

    coding needs to be updated to Gulp 4.0. Otherwise, thanks for the nice tutorial.

  15. Dieter Jaut

    My Way + I Wanna Be Sedated – Nina Hagen & Snap Her live in New York 1995 – YouTube

  16. Great tutorial,thank you very much!
    Everything was fine, but there was a problem when I was writing gulp ('gulp' is not recognised)…why?

  17. Dimka

    Thanks, man ! I am happy that Ive opened Gulp for myself. Its like to go to a new level of web- developing xD

Leave a Reply