Last active
December 9, 2016 05:03
-
-
Save SastraNababan/290d4e2cf2b446333ae43833fef6b40f to your computer and use it in GitHub Desktop.
SCSS Taks with error management
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Konfigurasi | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
var plumber = require('gulp-plumber'); | |
var notify = require('gulp-notify'); | |
// Compile SCSS | |
gulp.task('sass', function () { | |
return gulp.src('./app/scss/*.scss') | |
.pipe(plumber() | |
.pipe(sass()) | |
.pipe(plumber.stop()) | |
.pipe(gulp.dest('./app/css')) | |
.pipe(reload({stream: true})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment