mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Perf: speed up build
This commit is contained in:
@@ -28,7 +28,7 @@ const buildPublicHtml = task(__filename, async () => {
|
||||
|
||||
const html = template(list);
|
||||
|
||||
await fs.promises.writeFile(path.join(publicPath, 'index.html'), html, 'utf-8');
|
||||
return fs.promises.writeFile(path.join(publicPath, 'index.html'), html, 'utf-8');
|
||||
});
|
||||
|
||||
module.exports.buildPublicHtml = buildPublicHtml;
|
||||
|
||||
Reference in New Issue
Block a user