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
feat: allow options in colormin #1263
feat: allow options in colormin #1263
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1263 +/- ##
==========================================
- Coverage 96.83% 96.83% -0.01%
==========================================
Files 125 125
Lines 8245 8239 -6
Branches 15 15
==========================================
- Hits 7984 7978 -6
Misses 261 261
Continue to review full report at Codecov.
|
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.
I think overall it is an improvement. Should even fix minification when the browsers do not support some features.
function pluginCreator() { | ||
function addPluginDefaults(options, browsers) { | ||
const defaults = { | ||
transparent: browsers.some(hasTransparentBug) === false, // Does the browser support 4 & 8 character hex notation |
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.
Nice to check for feature support!
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.
This was already in the code, I just moved it around. 🙈
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.
Ah, true, but it still a bugfix because previously the options did not get passed down to colord.
I guess I should also add this new information to ReadMe... anywhere else? |
I think it's enough to add it to the ReadMe. I'll figure out if other docs need to be updated, I think they are automatically generated though. |
Allow passing
colord
lib options topostcss-colormin
.Created from #1262