19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import solidPlugin from "vite-plugin-solid";
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: "localhost",
|
|
port: 3080,
|
|
hmr: false,
|
|
},
|
|
build: { target: "esnext" },
|
|
plugins: [solidPlugin()],
|
|
resolve: {
|
|
alias: {
|
|
"#/": fileURLToPath(new URL("./", import.meta.url)),
|
|
},
|
|
},
|
|
});
|