Skip to content

Instantly share code, notes, and snippets.

@delebash
Created April 20, 2015 01:13
Show Gist options
  • Save delebash/e157fcf0a2659ae08775 to your computer and use it in GitHub Desktop.
Save delebash/e157fcf0a2659ae08775 to your computer and use it in GitHub Desktop.
sass-ruby example
gulp.task('sass', function () {
return sass(config.sassPath + '/style.scss',
{
style: 'expanded',
loadPath:[
'./src/sass',
config.bowerDir + '/bootstrap-sass-official/assets/stylesheets'
]})
.on('error', notify.onError(function (error){
return "Error: " + error.message;
}))
.pipe(gulp.dest('./public/css'));
});
// Rerun the task when a file changes
gulp.task('watch', function() {
gulp.watch(config.sassPath + '/**/*.scss', ['sass']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment