ソースを参照

removed obsolete method

Gildas 7 年 前
コミット
53c2861666
1 ファイル変更1 行追加3 行削除
  1. 1 3
      lib/single-file/html-minifier.js

+ 1 - 3
lib/single-file/html-minifier.js

@@ -139,6 +139,7 @@ this.htmlmini = this.htmlmini || (() => {
 
 
 	return {
 	return {
 		process: (doc, options) => {
 		process: (doc, options) => {
+			removeEmptyInlineElements(doc);
 			const nodesWalker = doc.createTreeWalker(doc.documentElement, NodeFilter.SHOW_ALL, null, false);
 			const nodesWalker = doc.createTreeWalker(doc.documentElement, NodeFilter.SHOW_ALL, null, false);
 			let node = nodesWalker.nextNode();
 			let node = nodesWalker.nextNode();
 			while (node) {
 			while (node) {
@@ -149,9 +150,6 @@ this.htmlmini = this.htmlmini || (() => {
 					previousNode.remove();
 					previousNode.remove();
 				}
 				}
 			}
 			}
-		},
-		postProcess: doc => {
-			removeEmptyInlineElements(doc);
 		}
 		}
 	};
 	};