summaryrefslogtreecommitdiff
path: root/node_modules/clean-css/lib/optimizer/level-2/restore-with-components.js
blob: f2965bab8f0fdd90c67a8831721d57003d33cc34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var configuration = require('../configuration');

function restoreWithComponents(property) {
  var descriptor = configuration[property.name];

  if (descriptor && descriptor.shorthand) {
    return descriptor.restore(property, configuration);
  }
  return property.value;
}

module.exports = restoreWithComponents;