mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 12:40:05 +02:00
update packages to latest version
This commit is contained in:
6
node_modules/clean-css/lib/optimizer/level-2/properties/is-component-of.js
generated
vendored
6
node_modules/clean-css/lib/optimizer/level-2/properties/is-component-of.js
generated
vendored
@@ -1,8 +1,8 @@
|
||||
var configuration = require('../../configuration');
|
||||
|
||||
function isComponentOf(property1, property2, shallow) {
|
||||
return isDirectComponentOf(property1, property2) ||
|
||||
!shallow && !!configuration[property1.name].shorthandComponents && isSubComponentOf(property1, property2);
|
||||
return isDirectComponentOf(property1, property2)
|
||||
|| !shallow && !!configuration[property1.name].shorthandComponents && isSubComponentOf(property1, property2);
|
||||
}
|
||||
|
||||
function isDirectComponentOf(property1, property2) {
|
||||
@@ -14,7 +14,7 @@ function isDirectComponentOf(property1, property2) {
|
||||
function isSubComponentOf(property1, property2) {
|
||||
return property1
|
||||
.components
|
||||
.some(function (component) {
|
||||
.some(function(component) {
|
||||
return isDirectComponentOf(component, property2);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user