0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.