const path = require("path"); const fs = require("fs"); module.exports = { apply() { cogear.on("build.page.writeAfter", ([page, html]) => { let BASE_URL = cogear.config.baseUrl || "/"; html = html.replace(/(