|
|
@ -74,6 +74,7 @@ module.exports = function(Meta) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
winston.info('[meta/css] Done.');
|
|
|
|
emitter.emit('meta:css.compiled');
|
|
|
|
emitter.emit('meta:css.compiled');
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
|
if (typeof callback === 'function') {
|
|
|
@ -137,8 +138,6 @@ module.exports = function(Meta) {
|
|
|
|
hash = hasher.digest('hex').slice(0, 8);
|
|
|
|
hash = hasher.digest('hex').slice(0, 8);
|
|
|
|
Meta.css.hash = hash;
|
|
|
|
Meta.css.hash = hash;
|
|
|
|
|
|
|
|
|
|
|
|
winston.info('[meta/css] Done.');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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') {
|
|
|
|
Meta.css.commitToFile(destination);
|
|
|
|
Meta.css.commitToFile(destination);
|
|
|
|