diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-05-28 18:53:00 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-05-28 18:53:00 +0300 |
| commit | 9a36065a88271c79faf2017b391e9aae40b4a4b4 (patch) | |
| tree | 13248106a352df939c71b2540e19aba58cdcaf7a /build.js | |
| parent | d4f72e3aeaae49501e46ac4fbe825c6d747b4150 (diff) | |
| download | the-epube-9a36065a88271c79faf2017b391e9aae40b4a4b4.tar.gz the-epube-9a36065a88271c79faf2017b391e9aae40b4a4b4.tar.xz | |
various worker-related fixes
Diffstat (limited to 'build.js')
| -rw-r--r-- | build.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build.js b/build.js index b69c200..ed91103 100644 --- a/build.js +++ b/build.js @@ -44,7 +44,6 @@ const CACHE_ASSETS = [ 'worker.js', 'offline.html', 'read.html', - 'index.php', ]; async function buildLibs() { @@ -83,7 +82,7 @@ async function buildApp() { const workerContent = readFileSync("src/worker.js"); - const MANIFEST_ASSETS = CACHE_ASSETS; + let MANIFEST_ASSETS = CACHE_ASSETS; // Add fonts and images try { @@ -94,6 +93,9 @@ async function buildApp() { // glob not available, skip } + // deduplicate + MANIFEST_ASSETS = [...new Set(MANIFEST_ASSETS)]; + await esbuild.build({ stdin: { contents: workerContent, resolveDir: process.cwd(), loader: 'js' }, bundle: false, |
