diff --git a/src/webserver.js b/src/webserver.js index ba142bb733..521cb2f10a 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -35,17 +35,21 @@ var path = require('path'), var templates = null, clientScripts; - // Minify client-side libraries - meta.js.get(function (err, scripts) { - clientScripts = scripts.map(function (script) { - script = { - script: script - }; - - return script; + + plugins.ready(function() { + // Minify client-side libraries + meta.js.get(function (err, scripts) { + clientScripts = scripts.map(function (script) { + script = { + script: script + }; + + return script; + }); }); }); + server.app = app; /**