Just noticed that using single quotes in javascript blows up automatic formatting sometimes:
See the public/sass/*.sass
line:
Double quotes:
gulp.task('compile-sass', function(){
gulp
.src("public/sass/*.sass")
.pipe(sourcemaps.init())
.pipe(sass({ indentedSyntax: true, errLogToConsole: true }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('public/stylesheets'));
});
Single quotes:
gulp.task('compile-sass', function(){
gulp
.src('public/sass/*.sass')
.pipe(sourcemaps.init())
.pipe(sass({ indentedSyntax: true, errLogToConsole: true }))
.pipe(sourcemaps.write())
.pipe(gulp.dest('public/stylesheets'));
});
In fact I was noticing some peculiarities of automatic indenter before, but only now I was able to pinpoint it.
Questions are usual - what gives and how to fix it?
Thanks.
.js
, this isGulpfile.js
vim-javascript plugin
?