Sha256: 2e662d2c0b8747c3d16b375a57afa9c758f29deebda62f3551972d1c787013e8

Contents?: true

Size: 672 Bytes

Versions: 5

Compression:

Stored size: 672 Bytes

Contents

(function(exports) {
    var preProcessor = function() {};

    preProcessor.prototype = {
        process : function (src, extra) {
            var injected = '@color: red;\n';
            var ignored = extra.imports.contentsIgnoredChars;
            var fileInfo = extra.fileInfo;
            ignored[fileInfo.filename] = ignored[fileInfo.filename] || 0;
            ignored[fileInfo.filename] += injected.length;
            return injected + src;
        }
    };

    exports.install = function(less, pluginManager) {
        pluginManager.addPreProcessor( new preProcessor() );
    };

})(typeof exports === 'undefined' ? this['preProcessorPlugin'] = {} : exports);

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/less/test/plugins/preprocess/index.js
ilog-0.4.0 node_modules/less/test/plugins/preprocess/index.js
ilog-0.3.3 node_modules/less/test/plugins/preprocess/index.js
less-execjs-2.6.0.4 lib/less/js/less/test/plugins/preprocess/index.js
less-execjs-2.6.0.3 lib/less/js/less/test/plugins/preprocess/index.js