diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2021-12-31 21:17:35 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2021-12-31 21:17:35 -0400 |
commit | 3fa4eaf8f1e400bc420f1365da26f48f8dfe37f5 (patch) | |
tree | d65ebdfe60b43805b620b387d2c6489a020b3dd0 /src/upd8.js | |
parent | 5b1418b417c2bac641a8671e7da5cf02aefa6245 (diff) |
new --append-index-html to dev w/o server
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js index b31505d3..c9fc1d87 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2233,12 +2233,20 @@ async function main() { type: 'flag' }, - // Only want 8uild one language during testing? This can chop down + // Only want to 8uild one language during testing? This can chop down // 8uild times a pretty 8ig chunk! Just pass a single language code. 'lang': { type: 'value' }, + // Working without a dev server and just using file:// URLs in your we8 + // 8rowser? This will automatically append index.html to links across + // the site. Not recommended for production, since it isn't guaranteed + // 100% error-free (and index.html-style links are less pretty anyway). + 'append-index-html': { + type: 'flag' + }, + 'queue-size': { type: 'value', validate(size) { @@ -2275,6 +2283,12 @@ async function main() { } } + const appendIndexHTML = miscOptions['append-index-html'] ?? false; + if (appendIndexHTML) { + logWarn`Appending index.html to link hrefs. (Note: not recommended for production release!)`; + unbound_link.globalOptions.appendIndexHTML = true; + } + const skipThumbs = miscOptions['skip-thumbs'] ?? false; const thumbsOnly = miscOptions['thumbs-only'] ?? false; |