hrms-mgt/vite.config.ts

34 lines
778 B
TypeScript
Raw Normal View History

2024-11-12 14:08:36 +07:00
import { fileURLToPath, URL } from "node:url";
2023-06-01 12:54:58 +07:00
2024-11-12 14:08:36 +07:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { quasar, transformAssetUrls } from "@quasar/vite-plugin";
2023-06-01 12:54:58 +07:00
// https://vitejs.dev/config/
export default defineConfig({
2024-11-12 14:08:36 +07:00
plugins: [
vue({
template: { transformAssetUrls },
}),
quasar({
sassVariables: "src/style/quasar-variables.sass",
}),
vueJsx(),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
2023-06-01 12:54:58 +07:00
},
2024-11-12 14:08:36 +07:00
},
build: {
target: "esnext",
},
server: {
port: 3006,
},
2025-06-05 18:02:08 +07:00
define: {
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // หรือ true ถ้าต้องการเปิดใช้
},
2024-11-12 14:08:36 +07:00
});