Browse Source

remove CSS comments only when compressing it

Gildas 7 years ago
parent
commit
69e11591ce
1 changed files with 1 additions and 1 deletions
  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 => {