broccoli-vulcanize
Version:
Broccoli plugin for Polymer Vulcanize tool
17 lines (13 loc) • 514 B
JavaScript
;
var RefCollector = require('./ref-collector');
module.exports = StyleRefCollector;
StyleRefCollector.prototype = Object.create(RefCollector.prototype);
StyleRefCollector.prototype.constructor = StyleRefCollector;
function StyleRefCollector(excludes) {
if (!(this instanceof StyleRefCollector)) {
return new StyleRefCollector(excludes);
}
RefCollector.call(this, excludes);
this.selector = 'link[rel="stylesheet"][href],link[rel="import"][type="css"][href]';
this.refAttr = 'href';
}