mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:55:53 +02:00
This commit is contained in:
@@ -92,8 +92,7 @@ module.exports = function(Meta) {
|
||||
process.send({
|
||||
action: 'css-propagate',
|
||||
cache: minified[0],
|
||||
acpCache: minified[1],
|
||||
hash: Meta.css.hash
|
||||
acpCache: minified[1]
|
||||
});
|
||||
}
|
||||
|
||||
@@ -186,14 +185,6 @@ module.exports = function(Meta) {
|
||||
|
||||
Meta.css[destination] = lessOutput.css;
|
||||
|
||||
if (destination === 'cache') {
|
||||
// Calculate css buster
|
||||
var hasher = crypto.createHash('md5');
|
||||
|
||||
hasher.update(lessOutput.css, 'utf-8');
|
||||
Meta.css.hash = hasher.digest('hex').slice(0, 8);
|
||||
}
|
||||
|
||||
// Save the compiled CSS in public/ so things like nginx can serve it
|
||||
if (nconf.get('isPrimary') === 'true') {
|
||||
Meta.css.commitToFile(destination);
|
||||
|
||||
Reference in New Issue
Block a user