cards/clients/solid/vite.config.ts

32 lines
747 B
TypeScript
Raw Normal View History

2024-10-15 21:09:11 -04:00
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
// import devtools from 'solid-devtools/vite';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [
/*
Uncomment the following line to enable solid-devtools.
For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
*/
// devtools(),
solidPlugin(),
],
server: {
2024-10-15 22:18:55 -04:00
host: "127.0.0.1",
2024-10-15 21:09:11 -04:00
port: 3000,
},
build: {
target: "esnext",
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
});