Files
Matthew Dean 2c5e4dd9b9 Lerna refactor / TS compiling w/o bundling (#3521)
* Lerna refactor / TS compiling w/o bundling
* Adds package-lock.json
2020-06-22 05:41:38 -07:00

20 lines
672 B
JavaScript

(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);