// Builds release/robotclash.html: the whole game in ONE file. Local s.replace(/<\/script/gi, '<\\/script');
html = html.replace(//g, (m, p) =>
local(p) ? `` : m);
html = html.replace(/` : m);
// static references in CSS / HTML attributes
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