web-deploy/node_modules/clean-css/lib/optimizer/level-2/properties/overrides-non-component-shorthand.js

10 lines
359 B
JavaScript
Raw Normal View History

2024-04-26 18:37:00 +01:00
var configuration = require('../../configuration');
function overridesNonComponentShorthand(property1, property2) {
return property1.name in configuration
&& 'overridesShorthands' in configuration[property1.name]
&& configuration[property1.name].overridesShorthands.indexOf(property2.name) > -1;
}
module.exports = overridesNonComponentShorthand;