Преглед на файлове

remove comments from inlined stylesheets

Gildas преди 6 години
родител
ревизия
7adf26e0c9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 					}