diff --git a/ci/build.ts b/ci/build.ts index 302696d51..ada4a2cbb 100644 --- a/ci/build.ts +++ b/ci/build.ts @@ -339,17 +339,24 @@ class Builder { } private createBundler(out = "dist", commit?: string): Bundler { - return new Bundler(path.join(this.rootPath, "src/browser/pages/app.ts"), { - cache: true, - cacheDir: path.join(this.rootPath, ".cache"), - detailedReport: true, - minify: !!process.env.MINIFY, - hmr: false, - logLevel: 1, - outDir: path.join(this.rootPath, out), - publicUrl: `/static-${commit}/dist`, - target: "browser", - }) + return new Bundler( + [ + path.join(this.rootPath, "src/browser/pages/app.ts"), + path.join(this.rootPath, "src/browser/register.ts"), + path.join(this.rootPath, "src/browser/serviceWorker.ts"), + ], + { + cache: true, + cacheDir: path.join(this.rootPath, ".cache"), + detailedReport: true, + minify: !!process.env.MINIFY, + hmr: false, + logLevel: 1, + outDir: path.join(this.rootPath, out), + publicUrl: `/static-${commit || "development"}/dist`, + target: "browser", + }, + ) } } diff --git a/src/browser/media/manifest.json b/src/browser/media/manifest.json index d2e3db90a..c0f5cf238 100644 --- a/src/browser/media/manifest.json +++ b/src/browser/media/manifest.json @@ -12,7 +12,7 @@ "sizes": "96x96" }, { - "src": "/{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-128.png", + "src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/pwa-icon-128.png", "type": "image/png", "sizes": "128x128" }, diff --git a/src/browser/pages/app.html b/src/browser/pages/app.html index 6f23348cf..0e850eeea 100644 --- a/src/browser/pages/app.html +++ b/src/browser/pages/app.html @@ -19,6 +19,7 @@
+