Go to “work” directory from command line and then install “gulp-uglify”, “gulp-minify-css” and “gulp-concat” plugins by using the below command −
In our configuration file , I.e gulpfile.js, firstly we need to declare the dependencies as shown in the below code.
The js task will accept the .js files from src/scripts/ folder. It concatenates and uglifies the js files, then produces build/scripts/script.js file.
And CSS task accepts the .css files from src/styles/ folder. This concatenates and reduces the CSS files, and produces build/styles/styles.css file.
Once the configuration file is set up , it is ready to execute.
We can use the below commands to run the task.
In the command Prompt, we will receive the following result:
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 © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.