All checks were successful
ci/woodpecker/push/build Pipeline was successful
7 lines
295 B
JavaScript
7 lines
295 B
JavaScript
import { existsSync, writeFileSync, readFileSync } from "node:fs";
|
|
if (existsSync("./dist/index.html")) {
|
|
const content = readFileSync("./dist/index.html", { encoding: "utf8" });
|
|
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
|
writeFileSync("./dist/index.html", newcontent);
|
|
}
|