Skip to content

Instantly share code, notes, and snippets.

@jacoor
Last active August 29, 2015 13:57
Show Gist options
  • Save jacoor/9739109 to your computer and use it in GitHub Desktop.
Save jacoor/9739109 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var compass = require('gulp-compass');
var path = require('path');
var paths = {
styles: {
src: 'nutrimom/static/scss/*',
dest: 'nutrimom/static/.sass-cache'
}
};
gulp.task('compass', function () {
return gulp.src(paths.styles.src+'scss')
.pipe(compass({
sourcemap: true,
project: path.join(__dirname, 'nutrimom/static'),
css: '.sass-cache',
sass: 'scss',
}))
.pipe(gulp.dest(paths.styles.dest));
});
gulp.task('watch', function() {
gulp.watch(paths.styles.src+'*/*.scss', ['compass']);
});
gulp.task('default', ['compass','watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment