30 lines
703 B
TypeScript
30 lines
703 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
export default defineConfig({
|
|
root: "client",
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./client/src", import.meta.url)),
|
|
"@shared": fileURLToPath(new URL("./shared", import.meta.url)),
|
|
"page-flip": fileURLToPath(
|
|
new URL("./node_modules/page-flip/dist/js/page-flip.module.js", import.meta.url),
|
|
),
|
|
},
|
|
},
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 3000,
|
|
strictPort: true,
|
|
proxy: {
|
|
"/api": "http://127.0.0.1:3010",
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "../dist",
|
|
emptyOutDir: true,
|
|
},
|
|
});
|