vite.config.js 384 B

12345678910111213141516171819
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. root: "web/src",
  7. build: {
  8. outDir: "../public"
  9. },
  10. // publicDir: "",
  11. plugins: [vue()],
  12. resolve: {
  13. alias: {
  14. '@': fileURLToPath(new URL('./web/src', import.meta.url))
  15. }
  16. }
  17. })