Files
examples/vuejs-simple/vite.config.ts

24 lines
439 B
TypeScript
Raw Normal View History

2024-06-30 19:17:47 -06:00
import { fileURLToPath, URL } from "node:url";
2024-06-30 19:13:27 -06:00
2024-06-30 19:17:47 -06:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
2024-06-30 19:13:27 -06:00
// https://vitejs.dev/config/
export default defineConfig({
2024-06-30 19:17:47 -06:00
plugins: [vue(), vueJsx()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
port: 3000,
host: true,
},
2024-06-30 19:21:50 -06:00
preview: {
port: 3000,
host: true,
},
2024-06-30 19:17:47 -06:00
});