浏览代码

commented constant

Gildas 7 年之前
父节点
当前提交
f1a09068e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/vendor/css-minifier.js

+ 1 - 1
lib/single-file/vendor/css-minifier.js

@@ -388,7 +388,7 @@ this.cssMinifier = this.cssMinifier || (() => {
 	const REGEXP_REPLACE_ZERO_DOT = /([0-9])\.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|%| |;)/gi;
 	const REGEXP_REPLACE_ZERO_DOT = /([0-9])\.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|%| |;)/gi;
 	const REGEXP_REPLACE_4_ZEROS = /:0 0 0 0(;|\})/g;
 	const REGEXP_REPLACE_4_ZEROS = /:0 0 0 0(;|\})/g;
 	const REGEXP_REPLACE_3_ZEROS = /:0 0 0(;|\})/g;
 	const REGEXP_REPLACE_3_ZEROS = /:0 0 0(;|\})/g;
-	const REGEXP_REPLACE_2_ZEROS = /:0 0(;|\})/g;
+	// const REGEXP_REPLACE_2_ZEROS = /:0 0(;|\})/g;
 	const REGEXP_REPLACE_1_ZERO = /(transform-origin|webkit-transform-origin|moz-transform-origin|o-transform-origin|ms-transform-origin|box-shadow):0(;|\})/gi;
 	const REGEXP_REPLACE_1_ZERO = /(transform-origin|webkit-transform-origin|moz-transform-origin|o-transform-origin|ms-transform-origin|box-shadow):0(;|\})/gi;
 	const REGEXP_REPLACE_ZERO_DOT_DECIMAL = /(:|\s)0+\.(\d+)/g;
 	const REGEXP_REPLACE_ZERO_DOT_DECIMAL = /(:|\s)0+\.(\d+)/g;
 	const REGEXP_REPLACE_RGB = /rgb\s*\(\s*([0-9,\s]+)\s*\)/gi;
 	const REGEXP_REPLACE_RGB = /rgb\s*\(\s*([0-9,\s]+)\s*\)/gi;