Gildas 7 лет назад
Родитель
Сommit
64c0fcf888
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -729,7 +729,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 							stylesheetContent = await DomProcessorHelper.resolveImportURLs(element.textContent, this.baseURI, options);
 						}
 						const stylesheet = cssTree.parse(stylesheetContent);
-						if (options.compressCSS) {
+						if (this.options.compressCSS) {
 							const removedRules = [];
 							for (let cssRule = stylesheet.children.head; cssRule; cssRule = cssRule.next) {
 								if (cssRule.data.type == "Raw" && cssRule.data.value && cssRule.data.value.trim().startsWith("//")) {