Support opening production build from filesystem

This commit is contained in:
KrivovDE
2026-09-09 19:07:19 +03:00
parent c43f7de150
commit fb92de1259

View File

@@ -30,3 +30,7 @@ for(const file of ['main-card-data.js','app.js']){
});
await writeFile(`dist/assets/js/${file}`,result.code);
}
const indexPath='dist/index.html';
const index=await readFile(indexPath,'utf8');
await writeFile(indexPath,index.replace(/\s+crossorigin(?=\s|>)/g,''));