Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

19
vite.js Normal file
View File

@@ -0,0 +1,19 @@
import { createServer, build } from 'vite';
import path from 'path';
if (process.argv[2] === "dev") {
async function dev() {
const server = await createServer({
configFile: process.argv[3]
? path.join("themes", process.argv[3], "vite.config.js")
: path.normalize("themes/default/vite.config.js"),
})
await server.listen();
}
dev();
} else {
build({
configFile: path.join("themes", process.argv[2] ?? 'default', "vite.config.js")
});
}