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

@@ -86,6 +86,18 @@ if(nconf.get('ssl')) {
winston.info('Using ports 80 and 443 is not recommend; use a proxy instead. See README.md');
}
// Prepare js for minification/concatenation
meta.js.prepare(function() {
if (app.enabled('minification')) {
meta.js.minify();
} else {
meta.js.concatenate();
}
});
// Minify CSS
meta.css.minify();
module.exports.server = server;
module.exports.init = function () {
server.on("error", function(err){