Explorar o código

removed obsolete method

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
53c2861666
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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);
 		}
 	};