// Builds release/robotclash.html: the whole game in ONE file. Local ` : 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