mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Fix CSS output for compression
This commit is contained in:
@@ -425,12 +425,13 @@ less.Parser = function Parser(env) {
|
||||
else throw new(LessError)(importError, env);
|
||||
}
|
||||
|
||||
css = css.replace(/\s+(\/)\s+/g, "$1");
|
||||
if (options.yuicompress && less.mode === 'node') {
|
||||
return require('ycssmin').cssmin(css);
|
||||
} else if (options.compress) {
|
||||
return css.replace(/(\s)+/g, "$1");
|
||||
} else {
|
||||
return css.replace(/\s+(\/)\s+/g, "$1");
|
||||
return css;
|
||||
}
|
||||
};
|
||||
})(root.eval);
|
||||
|
||||
Reference in New Issue
Block a user