make smartface config more self contained

This commit is contained in:
nightwing 2016-05-02 06:18:57 +00:00
parent 837e156abb
commit f8a99d2bca

View File

@ -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
};
}));