vite.config.ts 449 B

1234567891011121314151617181920
  1. import { fileURLToPath, URL } from 'node:url'
  2. import vue from '@vitejs/plugin-vue'
  3. import { defineConfig } from 'vite'
  4. export default defineConfig({
  5. plugins: [vue()],
  6. resolve: {
  7. alias: {
  8. '@': fileURLToPath(new URL('./src/client', import.meta.url)),
  9. '@shared': fileURLToPath(new URL('./src/shared', import.meta.url)),
  10. },
  11. },
  12. build: {
  13. outDir: 'dist',
  14. sourcemap: true,
  15. },
  16. server: {
  17. strictPort: true,
  18. },
  19. })