Skip to content

Instantly share code, notes, and snippets.

@mkoller
Created August 16, 2016 14:25
Show Gist options
  • Save mkoller/c99d895f4779412902d895b4837c0455 to your computer and use it in GitHub Desktop.
Save mkoller/c99d895f4779412902d895b4837c0455 to your computer and use it in GitHub Desktop.
// Convert sass to css
gulp.task('sass', function(){
return gulp.src('scss/**/*.scss')
// Initializes sourcemaps
.pipe(sourcemaps.init())
.pipe(sass({
errLogToConsole: true
}))
// Writes sourcemaps into the CSS file
.pipe(sourcemaps.write())
.pipe(gulp.dest('css'))
.pipe(browserSync.reload({
stream: true
}))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment