A
A
Artyom2018-09-10 10:13:01
Building projects
Artyom, 2018-09-10 10:13:01

How to style SASS output file in gulp?

How to style SASS output file in gulp?
By default, there is a nested style, which is not quite familiar to me, how can I change it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-09-10
@danyvasnafig

outputStyle
:nested
:compact
:expanded
:compressed

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question