mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 09:20:32 +01:00
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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user