Explorar o código

remove comments before processing the CSS file

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
461cde1854
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -1187,10 +1187,10 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			if (resourceURL && resourceURL != baseURI && resourceURL != ABOUT_BLANK_URI) {
 				const downloadOptions = { asDataURI: false, maxResourceSize: options.maxResourceSize, maxResourceSizeEnabled: options.maxResourceSizeEnabled, charSet: options.charSet };
 				let stylesheetContent = await Download.getContent(resourceURL, downloadOptions);
-				stylesheetContent = await DomProcessorHelper.resolveImportURLs(stylesheetContent, resourceURL, options);
 				if (options.compressCSS) {
 					stylesheetContent = DOM.compressCSS(DomUtil.removeCssComments(stylesheetContent));
 				}
+				stylesheetContent = await DomProcessorHelper.resolveImportURLs(stylesheetContent, resourceURL, options);
 				return stylesheetContent;
 			}
 		}