Forráskód Böngészése

removed obsolete method

Gildas 7 éve
szülő
commit
53c2861666
1 módosított fájl, 1 hozzáadás és 3 törlés
  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 {
 		process: (doc, options) => {
+			removeEmptyInlineElements(doc);
 			const nodesWalker = doc.createTreeWalker(doc.documentElement, NodeFilter.SHOW_ALL, null, false);
 			let node = nodesWalker.nextNode();
 			while (node) {
@@ -149,9 +150,6 @@ this.htmlmini = this.htmlmini || (() => {
 					previousNode.remove();
 				}
 			}
-		},
-		postProcess: doc => {
-			removeEmptyInlineElements(doc);
 		}
 	};