|
@@ -57,9 +57,9 @@ const args = require("yargs")
|
|
|
})
|
|
})
|
|
|
.options("back-end", { description: "Back-end to use" })
|
|
.options("back-end", { description: "Back-end to use" })
|
|
|
.choices("back-end", ["jsdom", "puppeteer", "webdriver"])
|
|
.choices("back-end", ["jsdom", "puppeteer", "webdriver"])
|
|
|
- .options("browser-headless", { description: "Run the browser in headless mode" })
|
|
|
|
|
|
|
+ .options("browser-headless", { description: "Run the browser in headless mode (puppeteer, webdriver)" })
|
|
|
.boolean("browser-headless")
|
|
.boolean("browser-headless")
|
|
|
- .options("browser-executable-path", { description: "Path to chrome/chromium executable" })
|
|
|
|
|
|
|
+ .options("browser-executable-path", { description: "Path to chrome/chromium executable (puppeteer)" })
|
|
|
.string("browser-executable-path")
|
|
.string("browser-executable-path")
|
|
|
.options("compress-CSS", { description: "Compress CSS stylesheets" })
|
|
.options("compress-CSS", { description: "Compress CSS stylesheets" })
|
|
|
.boolean("compress-CSS")
|
|
.boolean("compress-CSS")
|
|
@@ -67,9 +67,9 @@ const args = require("yargs")
|
|
|
.boolean("compress-HTML")
|
|
.boolean("compress-HTML")
|
|
|
.options("group-duplicate-images", { description: "Group duplicate images into CSS custom properties" })
|
|
.options("group-duplicate-images", { description: "Group duplicate images into CSS custom properties" })
|
|
|
.boolean("compress-HTML")
|
|
.boolean("compress-HTML")
|
|
|
- .options("load-deferred-images", { description: "Load deferred (aka lazy-loaded) images" })
|
|
|
|
|
|
|
+ .options("load-deferred-images", { description: "Load deferred (aka lazy-loaded) images (puppeteer, webdriver)" })
|
|
|
.boolean("load-deferred-images")
|
|
.boolean("load-deferred-images")
|
|
|
- .options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images" })
|
|
|
|
|
|
|
+ .options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images (webdriver)" })
|
|
|
.number("load-deferred-images")
|
|
.number("load-deferred-images")
|
|
|
.options("max-resource-size-enabled", { description: "Enable removal of embedded resources exceeding a given size" })
|
|
.options("max-resource-size-enabled", { description: "Enable removal of embedded resources exceeding a given size" })
|
|
|
.boolean("max-resource-size-enabled")
|
|
.boolean("max-resource-size-enabled")
|
|
@@ -81,7 +81,7 @@ const args = require("yargs")
|
|
|
.number("remove-unused-styles")
|
|
.number("remove-unused-styles")
|
|
|
.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
|
|
.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
|
|
|
.number("remove-unused-fonts")
|
|
.number("remove-unused-fonts")
|
|
|
- .options("remove-frames", { description: "Remove frames" })
|
|
|
|
|
|
|
+ .options("remove-frames", { description: "Remove frames (puppeteer, webdriver)" })
|
|
|
.number("remove-frames")
|
|
.number("remove-frames")
|
|
|
.options("remove-imports", { description: "Remove HTML imports" })
|
|
.options("remove-imports", { description: "Remove HTML imports" })
|
|
|
.number("remove-imports")
|
|
.number("remove-imports")
|
|
@@ -97,7 +97,7 @@ const args = require("yargs")
|
|
|
.number("remove-alternative-medias")
|
|
.number("remove-alternative-medias")
|
|
|
.options("remove-alternative-images", { description: "Remove images for alternative sizes of screen" })
|
|
.options("remove-alternative-images", { description: "Remove images for alternative sizes of screen" })
|
|
|
.number("remove-alternative-images")
|
|
.number("remove-alternative-images")
|
|
|
- .options("save-raw-page", { description: "Save the original page without interpreting it into the browser" })
|
|
|
|
|
|
|
+ .options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver)" })
|
|
|
.number("save-raw-page")
|
|
.number("save-raw-page")
|
|
|
.argv;
|
|
.argv;
|
|
|
|
|
|