Skip to content

Instantly share code, notes, and snippets.

@yodasw16
Created March 28, 2014 17:18
Show Gist options
  • Save yodasw16/9837972 to your computer and use it in GitHub Desktop.
Save yodasw16/9837972 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
compass = require('gulp-compass')
var sources = {
styles : 'client/app/sass/**/*.scss'
}
gulp.task('styles', function() {
gulp.src('sources.styles')
.pipe(compass({
require: ['modular-scale', 'singularitygs'],
sass: 'client/app/sass',
css: 'client/app/stylesheets',
image: 'client/app/images',
style: 'compact'
}))
.pipe(gulp.dest('client/app/stylesheets'))
});
gulp.task('watch', function() {
gulp.watch(sources.styles, ['styles']);
});
gulp.task('serve', ['styles', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment