source: trip-planner-front/node_modules/less/test/plugins/preprocess/index.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 672 bytes
Line 
1(function(exports) {
2 var preProcessor = function() {};
3
4 preProcessor.prototype = {
5 process : function (src, extra) {
6 var injected = '@color: red;\n';
7 var ignored = extra.imports.contentsIgnoredChars;
8 var fileInfo = extra.fileInfo;
9 ignored[fileInfo.filename] = ignored[fileInfo.filename] || 0;
10 ignored[fileInfo.filename] += injected.length;
11 return injected + src;
12 }
13 };
14
15 exports.install = function(less, pluginManager) {
16 pluginManager.addPreProcessor( new preProcessor() );
17 };
18
19})(typeof exports === 'undefined' ? this['preProcessorPlugin'] = {} : exports);
Note: See TracBrowser for help on using the repository browser.