Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative to mqpacker #1

Open
jonnitto opened this issue Apr 2, 2019 · 11 comments
Open

Alternative to mqpacker #1

jonnitto opened this issue Apr 2, 2019 · 11 comments

Comments

@jonnitto
Copy link

jonnitto commented Apr 2, 2019

I don't know why, but https://github.com/hail2u/node-css-mqpacker is deprecated. Do you have an alternative?

@simbo
Copy link
Owner

simbo commented Apr 11, 2019

I contacted Kyo Nagashima, the developer of css-mqpacker, and tried to find out what's going on.
I wrote him an email offering maintenance for the package and opened this issue: hail2u/node-css-mqpacker#72

I didn't get any response. And he archived the project so I guess he's not interested in any further work on this project.

I still see usecases for the plugin and I am using it in a lot of projects. I don't know any reasons why it should be obsolete.

So, I am creating a fork / rebuild asap and will publish it within the next weeks.
I will add updated information to this ticket.

@Alecto
Copy link

Alecto commented Apr 16, 2019

thanks!

@flowen
Copy link

flowen commented Sep 30, 2019

for anyone wondering, I believe @simbo created a fork right here https://github.com/simbo/node-css-mqpacker.

edit: reason why I came here, is because npmjs.org still seems to install the 7.0.0 deprecated version. The forked version refers to the same package, how can I install the forked version @simbo ?

@hacknug
Copy link

hacknug commented Sep 30, 2019

@flowen code on Simbo's fork is exactly the same as the one on the archived repo. That's probably why there's nothing new published on NPM.

@orionrush
Copy link

So do we keep linking to NPM's "css-mqpacker", and when @simbo updates we can find the changes there automatically? Or should we start linking to this repo directly instead?

@hacknug
Copy link

hacknug commented Oct 1, 2019

I'd say install css-mqpacker from NPM and if Simbo or someone else publishes a new version, they might let us know in this issue. Then we can replace the old css-mqpacker with whatever the new version is called 👍

@lecodeur
Copy link

lecodeur commented Oct 1, 2019

A possible alternative is to pipe through clean-css https://www.npmjs.com/package/clean-css-cli

Level 2 optimisation
mergeMedia controls @media merging; defaults to on

@philwareham
Copy link

Potential postCSS replacement for css-mqpacker: https://github.com/SassNinja/postcss-combine-media-query

Not tried it yet but will do shortly and report back here.

@jonnitto
Copy link
Author

I tried postcss-combine-media-query. Unfortunately, this doesn't sort the media queries.

@philwareham
Copy link

@jonnitto Yeah, it didn't work for my needs either. 😕

@nickclyde
Copy link

Here is another alternative:
https://github.com/yunusga/postcss-sort-media-queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants