single-file-cli 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/args.js CHANGED
@@ -65,6 +65,7 @@ const args = require("yargs")
65
65
  "filename-max-length": 192,
66
66
  "filename-max-length-unit": "bytes",
67
67
  "group-duplicate-images": true,
68
+ "max-size-duplicate-images": 512 * 1024,
68
69
  "http-header": [],
69
70
  "include-infobar": false,
70
71
  "insert-meta-csp": true,
@@ -102,6 +103,16 @@ const args = require("yargs")
102
103
  })
103
104
  .options("back-end", { description: "Back-end to use" })
104
105
  .choices("back-end", ["jsdom", "puppeteer", "webdriver-chromium", "webdriver-gecko", "puppeteer-firefox", "playwright-firefox", "playwright-chromium"])
106
+ .options("--block-audios", { description: "Block audios" })
107
+ .boolean("--block-audios")
108
+ .options("--block-fonts", { description: "Block fonts" })
109
+ .boolean("--block-fonts")
110
+ .options("--block-images", { description: "Block images" })
111
+ .boolean("--block-images")
112
+ .options("--block-scripts", { description: "Block scripts" })
113
+ .boolean("--block-scripts")
114
+ .options("--block-videos", { description: "Block videos" })
115
+ .boolean("--block-videos")
105
116
  .options("block-mixed-content", { description: "Block mixed contents" })
106
117
  .boolean("block-mixed-content")
107
118
  .options("browser-server", { description: "Server to connect to (puppeteer only for now)" })
@@ -180,6 +191,8 @@ const args = require("yargs")
180
191
  .string("filename-max-length-unit")
181
192
  .options("group-duplicate-images", { description: "Group duplicate images into CSS custom properties" })
182
193
  .boolean("group-duplicate-images")
194
+ .options("max-size-duplicate-images", { description: "Maximum sie in bytes of duplicate images stored as CSS custom properties" })
195
+ .number("max-size-duplicate-images")
183
196
  .options("http-header", { description: "Extra HTTP header (puppeteer, jsdom)" })
184
197
  .array("http-header")
185
198
  .options("include-BOM", { description: "Include the UTF-8 BOM into the HTML page" })
@@ -28,7 +28,6 @@ const fs = require("fs");
28
28
  const SCRIPTS = [
29
29
  "lib/single-file.js",
30
30
  "lib/single-file-bootstrap.js",
31
- "lib/single-file-hooks.js",
32
31
  "lib/single-file-hooks-frames.js"
33
32
  ];
34
33