This commit is contained in:
kolaflash
2025-12-16 20:36:09 +01:00
parent 897c414b44
commit 1dc9c803b3
35 changed files with 114 additions and 36 deletions
+16 -7
View File
@@ -1,15 +1,24 @@
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import { defineConfig, type Plugin } from "vite";
import solidPlugin from "vite-plugin-solid";
import middleware from "#/dev/server/middleware.ts";
export const host = "localhost";
export const port = 3080;
function devTools(): Plugin {
return {
name: "dev-tools",
configureServer(server) {
server.middlewares.use("/api", middleware);
},
};
}
export default defineConfig({
server: {
host: "localhost",
port: 3080,
hmr: false,
},
server: { host, port, hmr: false },
build: { target: "esnext" },
plugins: [solidPlugin()],
plugins: [solidPlugin(), devTools()],
resolve: {
alias: {
"#/": fileURLToPath(new URL("./", import.meta.url)),