S
S
Silence2018-12-27 12:14:03
gulp.js
Silence, 2018-12-27 12:14:03

How to combine css rules for the same html class?

@media (max-width:992px) {
  .block {
    -ms-flex-preferred-size: 25%;
    flex-basis: 25%;
    max-width: 25%;
  }

  .block {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

How to combine all descriptions under one class? group-media-queries combines everything under one request, but after that I want to combine the css properties into one class, is there a suitable plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2018-12-27
@chukriy

try gulp-csso there is such a thing, except that as a minus of this plugin there is no way to cancel the minification of the file (at least I did not find such an option) and if you need to get a non-minified file, you will have to connect additional plugins for alignment and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question