Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
19
my-app/node_modules/less/test/plugins/preprocess/index.js
generated
vendored
Executable file
19
my-app/node_modules/less/test/plugins/preprocess/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
(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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue