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

remove CSS comments only when compressing it

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

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

@@ -1100,7 +1100,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		static async resolveImportURLs(stylesheetContent, baseURI, options) {
 			stylesheetContent = DomProcessorHelper.resolveStylesheetURLs(stylesheetContent, baseURI, options);
 			if (options.compressCSS) {
-				// stylesheetContent = DomUtil.removeCssComments(stylesheetContent);
+				stylesheetContent = DomUtil.removeCssComments(stylesheetContent);
 			}
 			const imports = DomUtil.getImportFunctions(stylesheetContent);
 			await Promise.all(imports.map(async cssImport => {