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