I've started experimenting with gulp.js.
I'm used to grunt sass packages generating CSS sourcemaps that I can use to debug my sass. I'm currently using gulp-ruby-sass to generate CSS.
At the end of the process no source maps are being generated and there is no sourcemap reference in the CSS file.
My gulpfile looks like this:
/* load plugins */
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
browsersync = require('browser-sync'),
reload = browsersync.reload;
/*
* define tasks
*/
gulp.task('sass', function() {
return sass('assets/sass/main.sass', { sourcemap : true })
.pipe(gulp.dest('assets/css'))
.pipe(reload({stream : true})) ;
}) ;
/*
* browsersync conf
*/
gulp.task('browser-sync', function() {
browsersync({
proxy: 'neat',
port: '3000'
});
});
gulp.task('browsersync-reload', function () {
browsersync.reload();
});
gulp.task('watch', ['browser-sync'], function () {
gulp.watch('assets/sass/**/*', ['sass']);
});
/* Default task */
gulp.task('default', ['sass'], function() {
gulp.watch("assets/sass/**.*", ['sass']);
});