A
A
Artyom Tsymbalyuk2016-08-14 16:43:22
Node.js
Artyom Tsymbalyuk, 2016-08-14 16:43:22

How to take min.css as output from SASS?

Hello, I use the Gulp build for site layout
. The problem is as follows.
SASS compiles everything to min.css on output
How can I remove this?
Well, or what service can you use
min.css > css and vice versa css > min.cc

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Eugene, 2016-08-16
@artlivee

The CSS compression in your task runner is handled by the plugin: "gulp-clean-css"
On line 26 in gulpfile.js:

gulp.task('styles', function () {
    ....
    .pipe(rename({suffix: '.min', prefix : ''}))
    ....
    .pipe(cleanCSS())
    ....
});

Comment out the line and there will be no compression

S
sergey, 2016-08-14
@zorro76

How do you use assembly if you don't understand the basics of gulp?
In order not to ask such questions, I recommend that you study gulp more deeply, everything is simple there. Watch for example the video of the same author Tutorial

P
Puma Thailand, 2016-08-14
@opium

I think in the settings you can remove the minimization of the code, as elsewhere, if I understand you correctly

P
Palax, 2016-08-14
@Danipala

There, in the gulp file, remove the minification settings in the task itself, or delete minify-css.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question