-
Notifications
You must be signed in to change notification settings - Fork 38
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
New CSS minifier: miniMinifier #26
Comments
Interesting thing. That's surely gonna be fast. |
@xem I'd be interested in this assuming you make it a module :) |
You write your code and export it. Then add a package.json file. Where is the code right now published? |
the code is published here: https://github.com/xem/miniMinifier/ If it was embedded inside a function, that would be:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'd like to add my css minifier to the list, but sadly it's not node based. it's just an experiment (I tried to make a minifier as short as possible), but it has very interesting results:
given a string to minify "str", just run:
(removes comments, whitespaces and semicolons)
or a little more complete:
(removes comments, whitespaces and semicolons, leading zeros, units after zero, empty rules, converts rgb colors to hex and preserve ie8 compatibility)
You'll find more info, demo and test files on: http://xem.github.io/miniMinifier/css/
If someone can help me convert this / those functions in node, that would be very nice.
(I don't know how to do it yet ^^)
Thanks!
The text was updated successfully, but these errors were encountered: