1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 1 1 1 2 2 2 2 2 2 2 2 | "use strict"; var path = require('path'); var express = require('express'); var favicon = require('serve-favicon'); module.exports = function (app) { var root = app.getValue('projectRoot'); var npmPath = path.join(root, './node_modules'); var publicPath = path.join(root, './public'); var browserPath = path.join(root, './browser'); app.use(favicon(app.getValue('faviconPath'))); app.use(express.static(npmPath)); app.use(express.static(publicPath)); app.use(express.static(browserPath)); }; |