aboutsummaryrefslogtreecommitdiff
path: root/build.js
blob: a16c54b2d55b29e8d5d14cde2aaa019cdc836449 (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);
}