Sha256: 626766458852e8e003bfe4bb0adebaacf836b39c22efb7c193e16ee09d3df7c7
Contents?: true
Size: 703 Bytes
Versions: 5
Compression:
Stored size: 703 Bytes
Contents
(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);
Version data entries
5 entries across 5 versions & 2 rubygems