Skip to content

Commit 87bfeca

Browse files
committed
fix: include hash suffix in HTML asset references
Problem: Build system renames assets with hash (pizzaz-list.js → pizzaz-list-2d2b.js) but HTML still references non-hashed names, causing 404 errors. Solution: Update HTML generation to reference hashed filenames.
1 parent a53f363 commit 87bfeca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-all.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ for (const name of builtNames) {
175175
const html = `<!doctype html>
176176
<html>
177177
<head>
178-
<script type="module" src="${normalizedBaseUrl}/${name}.js"></script>
179-
<link rel="stylesheet" href="${normalizedBaseUrl}/${name}.css">
178+
<script type="module" src="${normalizedBaseUrl}/${name}-${h}.js"></script>
179+
<link rel="stylesheet" href="${normalizedBaseUrl}/${name}-${h}.css">
180180
</head>
181181
<body>
182182
<div id="${name}-root"></div>

0 commit comments

Comments
 (0)