Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Gulp Tutorial
→
Gulp Interview Questions in Gulp Tutorial
→
How To Compile Sass File To Css File Using Gulp?
1.
How To Compile Sass File To Css File Using Gulp?
Answer»
var
GULP
=
REQUIRE
('gulp'),
sass = require('gulp-sass');
//
COMPILE
Our Sass
gulp.task('sass', function() {
return gulp.src('scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('css'));
});
//
WATCH
Files For Changes
gulp.task('watch', function() {
gulp.watch('scss/*.scss', ['sass']);
});
// Default Task
gulp.task('default', ['sass', 'watch']);
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Gulp Vs Grunt?
How To Concat, Uglify And Rename All Javascript Files Using Gulp?
How To Compile Sass File To Css File Using Gulp?
Which Are The Most Used Gulp Plugins?
Is There Any Way To Load All Gulp Plugins In One Go?
What Is Require() In Gulpfile.js?
How Do You Execute Gulp Task?
What Is Default Task In Gulp?
What Is Gulp.watch And How To Use It?
What Is Gulp.dest And How To Use It?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies