瀏覽代碼

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
 					}