blob: 964c1a2a2ab0cfed91ef70b1ba88423e4d262a95 (
plain)
1
2
3
4
5
6
7
8
9
|
import { execSync } from "bun";
try {
// Precompile Pug templates in the `src` directory to the `dist` directory
execSync("pug src -o dist");
console.log("Pug templates compiled successfully.");
} catch (error) {
console.error("Failed to compile Pug templates:", error);
}
|