moved fontawesome CSS into stylesheet.css, and updating the js and css middlewares to compile at app start, not on first load

This commit is contained in:
Julian Lam
2014-03-24 14:12:59 -04:00
parent 980cf2ccf9
commit 8c7b474e8b
20 changed files with 1073 additions and 1465 deletions

View File

@@ -1,7 +1,6 @@
"use strict";
var app,
clientScripts,
middleware = {},
async = require('async'),
path = require('path'),
@@ -206,7 +205,6 @@ middleware.renderHeader = function(req, res, callback) {
'brand:logo:display': meta.config['brand:logo']?'':'hide',
csrf: res.locals.csrf_token,
relative_path: nconf.get('relative_path'),
clientScripts: clientScripts,
navigation: custom_header.navigation,
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
allowRegistration: meta.config.allowRegistration === undefined || parseInt(meta.config.allowRegistration, 10) === 1,
@@ -358,18 +356,5 @@ module.exports = function(webserver) {
app = webserver;
middleware.admin = require('./admin')(webserver);
plugins.ready(function() {
// Minify client-side libraries
meta.js.get(function (err, scripts) {
clientScripts = scripts.map(function (script) {
script = {
script: script
};
return script;
});
});
});
return middleware;
};