Просмотр исходного кода

call compressHTML after having all the CSS

Gildas 7 лет назад
Родитель
Сommit
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));
 				initializationPromises.push(this.processor.htmlImports(true));
 			}
 			}
 			await Promise.all(initializationPromises);
 			await Promise.all(initializationPromises);
+			if (this.options.compressHTML) {
+				this.processor.compressHTML();
+			}
 			if (this.options.removeUnusedCSSRules) {
 			if (this.options.removeUnusedCSSRules) {
 				this.processor.removeUnusedCSSRules();
 				this.processor.removeUnusedCSSRules();
 			}
 			}