v1.18.x
psychobunny 11 years ago
parent 42ea8652f1
commit 9f6c05bb24

@ -50,13 +50,19 @@ module.exports = function(Meta) {
parser.parse(source, function(err, tree) {
if (err) {
winston.error('[meta/css] Could not minify LESS/CSS: ' + err.stack);
winston.error('[meta/css] Could not minify LESS/CSS: ' + err.message);
return;
}
try {
var css = tree.toCSS({
cleancss: true
});
} catch (err) {
winston.error('[meta/css] Syntax Error: ' + err.message + ' - ' + path.basename(err.filename) + ' on line ' + err.line);
return;
}
Meta.css.cache = css;

Loading…
Cancel
Save