Просмотр исходного кода

renamed lib to avoid confusion

Gildas 7 лет назад
Родитель
Сommit
e74d233b23

+ 1 - 1
extension/core/bg/bg.js

@@ -38,7 +38,7 @@ singlefile.core = (() => {
 		"/lib/single-file/base64.js",
 		"/lib/single-file/uglifycss.js",
 		"/lib/single-file/rules-minifier.js",
-		"/lib/single-file/htmlnano.js",
+		"/lib/single-file/htmlmini.js",
 		"/lib/single-file/parse-srcset.js",
 		"/lib/single-file/lazy-loader.js",
 		"/lib/single-file/single-file-core.js",

+ 1 - 1
lib/single-file/htmlnano.js → lib/single-file/htmlmini.js

@@ -29,7 +29,7 @@
 
 /* global Node, NodeFilter */
 
-this.htmlnano = this.htmlnano || (() => {
+this.htmlmini = this.htmlmini || (() => {
 
 	// Source: https://github.com/kangax/html-minifier/issues/63
 	const booleanAttributes = [

+ 4 - 4
lib/single-file/single-file-browser.js

@@ -18,7 +18,7 @@
  *   along with SingleFile.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/* global SingleFileCore, base64, DOMParser, TextDecoder, fetch, superFetch, parseSrcset, uglifycss, htmlnano, rulesMinifier, lazyLoader */
+/* global SingleFileCore, base64, DOMParser, TextDecoder, fetch, superFetch, parseSrcset, uglifycss, htmlmini, rulesMinifier, lazyLoader */
 
 this.SingleFile = this.SingleFile || (() => {
 
@@ -102,9 +102,9 @@ this.SingleFile = this.SingleFile || (() => {
 					process: doc => lazyLoader.process(doc),
 					imageSelectors: lazyLoader.imageSelectors
 				},
-				htmlnano: {
-					process: doc => htmlnano.process(doc),
-					postProcess: doc => htmlnano.postProcess(doc),
+				htmlmini: {
+					process: doc => htmlmini.process(doc),
+					postProcess: doc => htmlmini.postProcess(doc),
 				},
 				rulesMinifier: doc => rulesMinifier.process(doc)
 			};

+ 2 - 2
lib/single-file/single-file-core.js

@@ -353,9 +353,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 
 		compressHTML(postProcess) {
 			if (postProcess) {
-				this.dom.htmlnano.postProcess(this.doc);
+				this.dom.htmlmini.postProcess(this.doc);
 			} else {
-				this.dom.htmlnano.process(this.doc);
+				this.dom.htmlmini.process(this.doc);
 			}
 		}