We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a325f11 commit e22f9b1Copy full SHA for e22f9b1
index.js
@@ -30,10 +30,12 @@ module.exports = postcss.plugin("postcss-color-function", function() {
30
* @return {String} converted declaration value to rgba()
31
*/
32
function transformColor(string) {
33
- return parser(string).walk(function (node) {
34
- if (node.type !== 'function' || node.value !== 'color') return
+ return parser(string).walk(function(node) {
+ if (node.type !== "function" || node.value !== "color") {
35
+ return
36
+ }
37
38
node.value = colorFn.convert(parser.stringify(node))
- node.type = 'word'
39
+ node.type = "word"
40
}).toString()
41
}
0 commit comments