In the preceding chapter, we have learnt how Gulp tasks can be combined using ‘default’ task. We can use gulp-minify-css, gulp-concatplugins, gulp-autoprefixer and created styles task to minify CSS files.
To have a look at the CSS file, we should update the ‘default’ task as shown in the below following code:
All the CSS files which are includes in work/src/styles/ folder will be watched and if any changes are made to the files, then styles task will get executed.
We can run a ‘default’ task using the below command.
After the execution of the above command, we will receive the following output.
If any changes are done to CSS files, you will be receiving the following output.
gulp.run() has been deprecated. So we can use task dependencies or gulp.watch task trigger
Watch process will always remain active and respond to all the changes. Press Ctrl+C to CLOSE the monitoring process and return to the command line.
Gulp Related Interview Questions
|Shell Scripting Interview Questions||CSS3 Interview Questions|
|HTML 5 Interview Questions||HTML DOM Interview Questions|
|Node.js Interview Questions||CSS Interview Questions|
|CSS Advanced Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|Spring Batch Interview Questions||Bootstrap3 Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.