Support opening production build from filesystem
This commit is contained in:
@@ -30,3 +30,7 @@ for(const file of ['main-card-data.js','app.js']){
|
|||||||
});
|
});
|
||||||
await writeFile(`dist/assets/js/${file}`,result.code);
|
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,''));
|
||||||
|
|||||||
Reference in New Issue
Block a user