Permalink
Browse files

Fix Windows bug: Plugins load error upon setting a windows dev envirn…

  • Loading branch information...
athana committed Feb 2, 2016
1 parent e387fbf commit a97625e8c44c8ad58c18865fe8da1bc2f663b5a5
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/server/lib/listPlugins.js
@@ -6,7 +6,10 @@ var plugins = function (dir) {
if (!dir) return [];
var files = glob.sync(path.join(dir, '*', 'index.js')) || [];
return files.map(function (file) {
return file.replace(dir, 'plugins').replace(/\.js$/, '');
// Fix Windows bug: Plugins load error upon setting a windows dev envirnoment
// https://github.com/elastic/kibana/issues/2852
//return file.replace(dir, 'plugins').replace(/\.js$/, '');
return file.replace(dir.replace(/\\/g, '/'), 'plugins').replace(/\.js$/, '');
});
};

0 comments on commit a97625e

Please sign in to comment.