Created
November 22, 2014 21:37
-
-
Save mattcannon/823bbffe8a3d4a1f6b3d to your computer and use it in GitHub Desktop.
working sourcemaps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-sass'); | |
var config = { | |
sass: { | |
includePaths: [], | |
sourceComments: 'map' | |
} | |
}; | |
gulp.task('compile-sass', function() { | |
gulp.src('public/assets/css/*.scss') | |
.pipe(sass(config.sass)) | |
.pipe(gulp.dest('public/css')); | |
}); | |
gulp.task('watch', [ 'compile-sass'], function() { | |
gulp.watch(['public/assets/stylesheets/**/*.scss'], ['compile-sass']); | |
}); | |
gulp.task('default', ['watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment