deprived-main-website/vite.config.js
BOTAlex 4e2fe3700d
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 1s
Extreme optimize + bug fixes + prerendering fix + more deprecation
2025-10-02 07:36:41 +02:00

35 lines
937 B
JavaScript

import tailwindcss from "@tailwindcss/vite";
import sveltekit from "./src/optimizers/sveltekit.ts";
import path from "path";
const buildTime = new Intl.DateTimeFormat("da-DK", {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
hour12: false,
timeZone: "Europe/Copenhagen",
}).format(new Date());
export default {
plugins: [tailwindcss(), sveltekit()],
define: {
__BUILD_TIME__: JSON.stringify(buildTime),
},
resolve: {
alias: {
"@images": path.resolve("./src/images"),
"@src": path.resolve("./src"),
"@static": path.resolve("./static"),
"@pages": path.resolve("./src/pages"),
"@ts": path.resolve("./src/ts"),
"@shop": path.resolve("./src/pages/shop"),
"@stores": path.resolve("./src/ts/store.ts"),
"@e": path.resolve("./src/optimizers"),
},
},
server: {
allowedHosts: ["development2.deprived.dev"],
},
};