Преглед изворни кода

call compressHTML after having all the CSS

Gildas пре 7 година
родитељ
комит
136d831c50
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      lib/single-file/single-file-core.js

+ 3 - 0
lib/single-file/single-file-core.js

@@ -126,6 +126,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				initializationPromises.push(this.processor.htmlImports(true));
 			}
 			await Promise.all(initializationPromises);
+			if (this.options.compressHTML) {
+				this.processor.compressHTML();
+			}
 			if (this.options.removeUnusedCSSRules) {
 				this.processor.removeUnusedCSSRules();
 			}