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
Simplify postcss-colormin
#1207
Simplify postcss-colormin
#1207
Conversation
Unfortunately, I'm not able to run tests locally (don't know why). Hope you can help me.
|
From your error message, seems like the ESLint import plugin is failing. What happens if you run |
|
Codecov Report
@@ Coverage Diff @@
## master #1207 +/- ##
==========================================
- Coverage 96.57% 96.54% -0.04%
==========================================
Files 117 115 -2
Lines 3646 3613 -33
Branches 1071 1062 -9
==========================================
- Hits 3521 3488 -33
Misses 117 117
Partials 8 8
Continue to review full report at Codecov.
|
The PR is ready. Hope you'll like the update =) |
7b850ab
to
c6373c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it going to be a burden to handle different browser targets inside colord? What other projects are going to use this minify plugin?
@ludofischer SVGO |
OK, then I guess you're prepared to handle all sort of issues :-) |
I guess browser support can be configured on cssnano side by passing options to minify() |
I think we will need |
It already works this way =) |
I even know who could do it. |
Hey guys!
cssnano
already usescolord
for color conversions inpostcss-colormin
and few other packages, but we added 100+ lines around the library to perform the color modification.Recently I releases
colord
v2.9 which has built-in color modification utilities so I decided to bring them here and make the cssnano codebase simpler.The new minifier I implemented inside of
colord
is also way smarter and performs better compression results.Example:
Don't know how to perform benchmarks here, but it also should work faster.