Skip to content

Commit 3206238

Browse files
committed
No need to inject service worker in parent
1 parent 962b391 commit 3206238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/build/vite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function defaultViteConfig(mode: string, rootDir: string, targetName: str
2727
rollupOptions: {
2828
input: {
2929
index: resolve(rootDir, "index.html"),
30+
// parent: resolve(rootDir, "parent.html"),
3031
},
3132
output: {
3233
assetFileNames: (asset) => {
@@ -80,7 +81,7 @@ export function defaultViteConfig(mode: string, rootDir: string, targetName: str
8081
}
8182

8283
function findUnhashedFileNamesFromBundle(bundle) {
83-
const names = ["index.html", "parent.html"];
84+
const names = ["index.html"];
8485
for (const fileName of Object.keys(bundle)) {
8586
if (/theme-.+\.json/.test(fileName)) {
8687
names.push(fileName);

0 commit comments

Comments
 (0)