--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
24
node_modules/less/test/plugins/visitor/index.js
generated
vendored
Normal file
24
node_modules/less/test/plugins/visitor/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
(function(exports) {
|
||||
var RemoveProperty = function(less) {
|
||||
this._visitor = new less.visitors.Visitor(this);
|
||||
};
|
||||
|
||||
RemoveProperty.prototype = {
|
||||
isReplacing: true,
|
||||
run: function (root) {
|
||||
return this._visitor.visit(root);
|
||||
},
|
||||
visitRule: function (ruleNode, visitArgs) {
|
||||
if (ruleNode.name != '-some-aribitrary-property') {
|
||||
return ruleNode;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.install = function(less, pluginManager) {
|
||||
pluginManager.addVisitor( new RemoveProperty(less));
|
||||
};
|
||||
|
||||
})(typeof exports === 'undefined' ? this['VisitorPlugin'] = {} : exports);
|
||||
Loading…
Reference in a new issue