Skip to content

Commit

Permalink
feat(server): allow to inject browser-sync client.js in custom middle…
Browse files Browse the repository at this point in the history
…wares
  • Loading branch information
mahnunchik authored and shakyShane committed Dec 22, 2014
1 parent 608dc87 commit 841c6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ function createServer (options, scripts, context) {
app = context.app = connect();
context.connect = connect;

utils.addMiddleware(app, middleware);

app.use(function (req, res, next) {
snippetUtils.isOldIe(req);
return next();
Expand All @@ -148,6 +146,8 @@ function createServer (options, scripts, context) {

app.use(snippetUtils.getSnippetMiddleware(options.snippet, options.snippetOptions));

utils.addMiddleware(app, middleware);

utils.addBaseDir(app, server.baseDir, index);

if (server.routes) {
Expand Down

0 comments on commit 841c6c3

Please sign in to comment.