Files
2025-12-27 21:19:09 -08:00

24 lines
482 B
JavaScript

import { build, preview } from "vite";
(async () => {
try {
await preview({
BASE_URL: "/",
MODE: "production",
DEV: false,
PROD: true,
});
console.log("Preview server is running...");
console.log("Listening on http://localhost:4173\n");
const watcher = await build({
build: {
watch: {},
},
});
console.log("Build in watch mode is running...");
} catch (err) {
console.error("Error:", err);
}
})();