You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parttimejob/node_modules/less/test/plugins/filemanager/index.js

20 lines
844 B

1 month ago
(function(exports) {
var plugin = function(less) {
var FileManager = less.FileManager, TestFileManager = new FileManager();
function TestFileManager() { }
TestFileManager.loadFile = function (filename, currentDirectory, options, environment, callback) {
if (filename.match(/.*\.test$/)) {
return less.environment.fileManagers[0].loadFile('colors.test', currentDirectory, options, environment, callback);
}
return less.environment.fileManagers[0].loadFile(filename, currentDirectory, options, environment, callback);
};
return TestFileManager;
};
exports.install = function(less, pluginManager) {
less.environment.addFileManager(new plugin(less));
};
})(typeof exports === 'undefined' ? this['AddFilePlugin'] = {} : exports);