1

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.

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.