mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
only need one "meta/css done" message
This commit is contained in:
@@ -74,6 +74,7 @@ module.exports = function(Meta) {
|
||||
});
|
||||
}
|
||||
|
||||
winston.info('[meta/css] Done.');
|
||||
emitter.emit('meta:css.compiled');
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
@@ -137,8 +138,6 @@ module.exports = function(Meta) {
|
||||
hash = hasher.digest('hex').slice(0, 8);
|
||||
Meta.css.hash = hash;
|
||||
|
||||
winston.info('[meta/css] Done.');
|
||||
|
||||
// Save the compiled CSS in public/ so things like nginx can serve it
|
||||
if (!cluster.isWorker || process.env.cluster_setup === 'true') {
|
||||
Meta.css.commitToFile(destination);
|
||||
|
||||
Reference in New Issue
Block a user