E
E
Evgeny Zhurov2016-11-29 14:39:15
Sass
Evgeny Zhurov, 2016-11-29 14:39:15

What do these options mean for sass in the gulp builder?

The following formulations and parameters of Gulp when processing sass raise questions:
1. .pipe(sass().on('error', sass.logError))
what exactly does such an entry affect, what result should it give and where can it be seen in case of an error? If I make a mistake in sass, it already appears in the console, even if I use the usual notation of the form
.pipe(sass())
2. .pipe(sass.sync().on('error', sass.logError))
sync is added after sass. What does it affect and how does it work?
3. .pipe(sass({errLogToConsole: true}))
what does this entry mean, and how is it different from the previous ones? Well, too - how exactly does it work and how can I see the result of its work?
4. What is the fundamental difference between the methods of installing sass, in the first and second cases: npm i -D gulp-sass and npm i -D gulp.sass? In the second case, the onSuccess: callback, onError: callback and sync: true options are available. How do they work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2016-11-29
@Zhuroff

3. Just passing parameters to plugin
4, just two different packages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question