A
A
Alexander2022-03-20 22:41:52
webpack
Alexander, 2022-03-20 22:41:52

How to use group-css-media-queries in webpack?

There is a project on vue-cli. Styles in scss.
I want to use group-css-media-queries .

Question: how to integrate it into the build process?
There is only one command in the README: group-css-media-queries input.css output.css

My build is a cascade of bash scripts.
You can take the group-css-media-queries utility for each file in dist/css/*.css after assembly.
As a result, I get correctly processed but not minified files, which is unsatisfactory.
Do they need to be minified again? And when deploying to a new machine, set group-css-media-queries globally? This business is starting to smell quite strongly.

Is there any alternative to group-css-media-queries for webpack+scss/sass?

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