K
K
kinkin12020-07-07 02:19:08
Sass
kinkin1, 2020-07-07 02:19:08

Gulp sass plugin, output indents in spaces in css file, how to adjust tab indents?

Now indented with spaces (2 spaces before each line), I would like tabs.
Tried all variants of outputStyle - expanded, nested, compact, compressed - this did not affect the indents.
I repeat, you need a tab before each new property and not spaces (4 spaces is also not suitable).
How to do it?

gulp.task('sass', function() {
  return gulp.src('src/sass/**/*.+(sass|scss)')
  .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
  .pipe(gulp.dest('dist/css'))
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-07
@kinkin1

That's it .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question