diff --git a/build-web.mjs b/build-web.mjs index 95aa965..8e66f26 100644 --- a/build-web.mjs +++ b/build-web.mjs @@ -65,10 +65,13 @@ for (const [token, tag] of await Promise.all(scriptJobs)) html = html.replace(to html = html.replace(/url\((['"]?)(assets\/[^'")]+)\1\)/g, (m, q, p) => (assets[p] ? `url('${assets[p]}')` : m)); html = html.replace(/(src|href)="(assets\/[^"]+)"/g, (m, a, p) => (assets[p] ? `${a}="${assets[p]}"` : m)); // everything the scripts load at runtime: must come before the first other \n\n