瀏覽代碼

less aggressive stye attribute optimization

Gildas 7 年之前
父節點
當前提交
21449744e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/css-rules-minifier.js

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

@@ -122,8 +122,8 @@ this.cssMinifier = this.cssMinifier || (() => {
 					styleCssText += style.name + ":" + cssStyle.getPropertyValue(style.name) + (priority && ("!" + priority));
 				}
 			}
-			return (styleCssText || cssStyle.cssText);
 		}
+		return (styleCssText || cssStyle.cssText);
 	}
 
 	function testIgnoredSelector(selectorText) {