diff --git a/src/plugins.js b/src/plugins.js index 224258997d..a132d6959a 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -100,7 +100,7 @@ var middleware; }); }, async.apply(Plugins.getPluginPaths), - function(paths, next) { + function (paths, next) { async.eachSeries(paths, Plugins.loadPlugin, next); }, function (next) { diff --git a/src/plugins/load.js b/src/plugins/load.js index b6231fc7c4..132863cbae 100644 --- a/src/plugins/load.js +++ b/src/plugins/load.js @@ -41,14 +41,13 @@ module.exports = function (Plugins) { Plugins.prepareForBuild = function (callback) { async.waterfall([ async.apply(Plugins.getPluginPaths), - function(paths, next) { - async.map(paths, function(path, next) { + function (paths, next) { + async.map(paths, function (path, next) { Plugins.loadPluginInfo(path, next); }, next); }, - function(plugins, next) { - async.each(plugins, function(pluginData, next) { - var idx = plugins.indexOf(pluginData); + function (plugins, next) { + async.each(plugins, function (pluginData, next) { async.parallel([ async.apply(mapFiles, pluginData, 'css', 'cssFiles'), async.apply(mapFiles, pluginData, 'less', 'lessFiles'),