Преглед на файлове

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();
 			}