Procházet zdrojové kódy

remove comments from inlined stylesheets

Gildas před 6 roky
rodič
revize
7adf26e0c9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -822,7 +822,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					}
 					let stylesheet;
 					try {
-						stylesheet = cssTree.parse(stylesheetContent);
+						stylesheet = cssTree.parse(Util.removeCssComments(stylesheetContent));
 					} catch (error) {
 						// ignored
 					}