Parcourir la source

less aggressive stye attribute optimization

Gildas il y a 7 ans
Parent
commit
21449744e7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {