diff --git a/lib/executor.js b/lib/executor.js index 052f714..ff8df81 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -346,6 +346,8 @@ function setupMiddleware(app, instructions) { app.defineMiddlewarePhases(phases); middleware.forEach(function(data) { + var middlewareUnexcluded = _.find(instructions.files.boot, function(o) { return o === data.sourceFile }); + if (!middlewareUnexcluded){ return; } debug('Configuring middleware %j%s', data.sourceFile, data.fragment ? ('#' + data.fragment) : ''); var factory = requireNodeOrEsModule(data.sourceFile);