M
M
Michael R.2018-10-03 10:30:52
webpack
Michael R., 2018-10-03 10:30:52

Optimizing css classes in webpack?

Greetings!
When building a project, when compiling scss > css, in css I notice a lot of classes that could be optimized.
Available at the output:

.element_1 {
    color: red;
}
.element_2 {
    color: red;
}

I would like the output to be:
.element_1, .element_2 {
    color: red;
}

How to properly configure WebPack to solve such a problem?
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question