Skip to content

Instantly share code, notes, and snippets.

@iamcarrico
Last active August 29, 2015 14:04
Show Gist options
  • Save iamcarrico/5801aee44da0607c8560 to your computer and use it in GitHub Desktop.
Save iamcarrico/5801aee44da0607c8560 to your computer and use it in GitHub Desktop.
gulp.task('sass', function() {
browserSync.notify('<span style="color: grey">Running:</span> Sass compiling');
return gulp.src(paths.sass)
.pipe(sass({
bundleExec: true,
style: 'expanded',
onError: browserSync.notify
}))
.pipe(prefix("last 2 versions", "> 1%"))
.pipe(gulp.dest('_src/css'))
.pipe(cssmin())
.pipe(gulp.dest(paths.assets))
.pipe(browserSync.reload({stream:true}));;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment