D
D
Darkmus112019-04-12 14:37:02
gulp.js
Darkmus11, 2019-04-12 14:37:02

How to disable minification in gulp csso?

I want to remove duplicates from css (there are a lot of them), but not to minify, because still need to write. The duplicates need to be deleted now, because the project was writing some kind of miracle and the style file is already 75 thousand+ lines long. And there are definitely places where the styles are exactly the same and repeated 5 times. So, gulp-csso does everything I need, but I don't need minification now. can it be turned off? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2019-04-12
@sharnirio

At one time, I asked the same question, for a working assembly, since the plugin definitely has good functionality, but it was also necessary to preserve the structure, in the end I can say that they basically don’t have such an option. I used the additional plugins gulp-cssbeautify and gulp-csscomb (in principle, gulp-csscomb should be enough, but I got a bug related to line translation, as I understood it somehow connected with the gulp-group-css-media-queries plugin and had to connect also gulp-cssbeautify).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question