Perf: speed up build

This commit is contained in:
SukkaW
2023-09-15 22:35:46 +08:00
parent 30cab8fc22
commit d5850aa84b
23 changed files with 241 additions and 184 deletions

View File

@@ -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;