ap-ssg
Version:
A fast, modular, SEO-optimized static site generator that minifies CSS, JS, and HTML for improved performance. It also supports JSON-LD, sitemap generation, and more, making it ideal for production-ready websites.
14 lines (11 loc) • 352 B
JavaScript
const userConfig = require("../configs/userConfig");
async function execPostBuild() {
if (userConfig.postBuild.length > 0) {
for (const hook of userConfig.postBuild) {
if (typeof hook === "function") {
await hook(); // Will work sequentially, whether async or sync
}
}
}
}
module.exports = execPostBuild;