source: trip-planner-front/node_modules/less/test/plugins/filemanager/index.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 845 bytes
Line 
1(function(exports) {
2 var plugin = function(less) {
3 var FileManager = less.FileManager, TestFileManager = new FileManager();
4 function TestFileManager() { };
5 TestFileManager.loadFile = function (filename, currentDirectory, options, environment, callback) {
6 if (filename.match(/.*\.test$/)) {
7 return less.environment.fileManagers[0].loadFile('colors.test', currentDirectory, options, environment, callback);
8 }
9 return less.environment.fileManagers[0].loadFile(filename, currentDirectory, options, environment, callback);
10 };
11
12 return TestFileManager;
13 };
14
15 exports.install = function(less, pluginManager) {
16 less.environment.addFileManager(new plugin(less));
17 };
18
19})(typeof exports === 'undefined' ? this['AddFilePlugin'] = {} : exports);
Note: See TracBrowser for help on using the repository browser.