mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
moving meta:css.compiled further down, currently it gets emitted twice
This commit is contained in:
@@ -74,6 +74,8 @@ module.exports = function(Meta) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emitter.emit('meta:css.compiled');
|
||||||
|
|
||||||
if (typeof callback === 'function') {
|
if (typeof callback === 'function') {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
@@ -134,7 +136,6 @@ module.exports = function(Meta) {
|
|||||||
Meta.css.hash = hash;
|
Meta.css.hash = hash;
|
||||||
|
|
||||||
winston.info('[meta/css] Done.');
|
winston.info('[meta/css] Done.');
|
||||||
emitter.emit('meta:css.compiled');
|
|
||||||
|
|
||||||
// Save the compiled CSS in public/ so things like nginx can serve it
|
// Save the compiled CSS in public/ so things like nginx can serve it
|
||||||
if (!cluster.isWorker || process.env.cluster_setup === 'true') {
|
if (!cluster.isWorker || process.env.cluster_setup === 'true') {
|
||||||
|
|||||||
Reference in New Issue
Block a user