소스 검색

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
 					}