make smartface config more self contained

pull/299/head
nightwing 2016-05-02 06:18:57 +00:00
rodzic 837e156abb
commit f8a99d2bca
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -86,9 +86,11 @@ define(function(require, exports, module) {
}]);
statics.addStatics(externalPlugins.map(function(plugin) {
if (typeof plugin == "string")
plugin = { path: plugin, mount: plugin};
return {
path: __dirname + "/../../node_modules/" + plugin,
mount: "/plugins/" + plugin
path: __dirname + "/../../node_modules/" + plugin.path,
mount: "/plugins/" + plugin.mount
};
}));