postcss-minify-gradients
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,3 +1,7 @@ | ||
# 1.0.1 | ||
* Reduce function iterations (thanks to @TrySound). | ||
# 1.0.0 | ||
* Initial release. |
@@ -48,3 +48,3 @@ 'use strict'; | ||
if (node.value === 'linear-gradient' || node.value === 'repeating-linear-gradient' || node.value === '-webkit-linear-gradient' || node.value === '-webkit-repeating-linear-gradient') { | ||
(function () { | ||
var _ret = (function () { | ||
var args = getArguments(node); | ||
@@ -76,6 +76,11 @@ if (node.nodes[0].value === 'to' && args[0].length === 3) { | ||
}); | ||
return { | ||
v: false | ||
}; | ||
})(); | ||
if (typeof _ret === 'object') return _ret.v; | ||
} | ||
if (node.value === 'radial-gradient' || node.value === 'repeating-radial-gradient' || node.value === '-webkit-radial-gradient' || node.value === '-webkit-repeating-radial-gradient') { | ||
(function () { | ||
var _ret2 = (function () { | ||
var args = getArguments(node); | ||
@@ -97,3 +102,8 @@ var lastStop = undefined; | ||
}); | ||
return { | ||
v: false | ||
}; | ||
})(); | ||
if (typeof _ret2 === 'object') return _ret2.v; | ||
} | ||
@@ -100,0 +110,0 @@ }).toString(); |
{ | ||
"name": "postcss-minify-gradients", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Minify gradient parameters with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7620
101