vite.config.js 400 B

1234567891011121314151617181920
  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. base: "/",
  8. build: {
  9. outDir: "../public"
  10. },
  11. publicDir: "public",
  12. plugins: [vue()],
  13. resolve: {
  14. alias: {
  15. '@': fileURLToPath(new URL('./web/src', import.meta.url))
  16. }
  17. }
  18. })