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

10 lines
359 B
JavaScript
Raw Normal View History

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;