diff --git a/ci/build.ts b/ci/build.ts index 302696d5..ada4a2cb 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 d2e3db90..c0f5cf23 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 6f23348c..0e850eee 100644 --- a/src/browser/pages/app.html +++ b/src/browser/pages/app.html @@ -19,6 +19,7 @@
+