|
|
@@ -386,6 +386,7 @@ this.uglifycss = this.uglifycss || (() => {
|
|
|
const REGEXP_NEWLINE2 = /\*\/\s*/g;
|
|
|
const REGEXP_RESTORE_SPACE1 = /\band\(/gi;
|
|
|
const REGEXP_RESTORE_SPACE2 = /([^:])not\(/gi;
|
|
|
+ const REGEXP_RESTORE_SPACE3 = /\bor\(/gi;
|
|
|
const REGEXP_REMOVE_SPACES3 = /([!{}:;>+([,])\s+/g;
|
|
|
const REGEXP_REMOVE_SEMI_COLUMNS = /;+\}/g;
|
|
|
const REGEXP_REPLACE_ZERO = /(^|[^.0-9\\])(?:0?\.)?0(?:ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|m?s|k?Hz|dpi|dpcm|dppx|%)(?![a-z0-9])/gi;
|
|
|
@@ -634,6 +635,7 @@ this.uglifycss = this.uglifycss || (() => {
|
|
|
// @media screen and (-webkit-min-device-pixel-ratio:0){
|
|
|
content = content.replace(REGEXP_RESTORE_SPACE1, "and (");
|
|
|
content = content.replace(REGEXP_RESTORE_SPACE2, "$1not (");
|
|
|
+ content = content.replace(REGEXP_RESTORE_SPACE3, "or (");
|
|
|
|
|
|
// remove the spaces after the things that should not have spaces after them.
|
|
|
content = content.replace(REGEXP_REMOVE_SPACES3, "$1");
|