With the introduction of Libsass 2.0, the indented syntax became available to libsass users. However, I have been facing issues trying to get it to work with node-sass
and gulp-sass
. Currently, all components are updated to their latest versions:
node-sass: 0.93
gulp-sass: 0.7.2
gulp: 3.8.2
While this configuration successfully compiles .scss
and even .sass
files using bracket syntax, it fails to compile the indented syntax. Has anyone managed to compile the indented syntax using node-sass and gulp?
Here is a snippet from my gulpfile.js
:
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function() {
return gulp.src('./sites/all/themes/nsfvb/sass/screen.sass')
.pipe(sass({
includePaths: require('node-neat').includePaths,
errLogToConsole: true
}
))
.pipe(gulp.dest('./sites/all/themes/nsfvb/css'));
});
gulp.task('watch', function() {
gulp.watch('./sites/all/themes/nsfvb/sass/*.sass', ['sass']);
});
gulp.task('default', ['sass', 'watch']);
Error encountered when running the default task:
error: invalid top-level expression