git commit -am "Pruned git history"
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / Rebuild Signaller (push) Successful in 21s
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / Rebuild Signaller (push) Successful in 21s
This commit is contained in:
commit
158918c0f5
201 changed files with 24558 additions and 0 deletions
44
vite.config.js
Normal file
44
vite.config.js
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import { paraglideVitePlugin } from "@inlang/paraglide-js";
|
||||
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: [
|
||||
paraglideVitePlugin({
|
||||
project: "./project.inlang",
|
||||
outdir: "./src/paraglide",
|
||||
}),
|
||||
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"),
|
||||
$paraglide: path.resolve("src/paraglide"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
allowedHosts: ["development2.deprived.dev"],
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue