Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vite.config.ts 635B

123456789101112131415161718192021222324252627282930313233
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import { resolve } from 'path'
  4. export default defineConfig({
  5. plugins: [vue()],
  6. base: './',
  7. resolve: {
  8. alias: {
  9. '@': resolve(__dirname, 'src')
  10. }
  11. },
  12. server: {
  13. port: 3000,
  14. proxy: {
  15. '/api': {
  16. target: 'http://localhost:8020',
  17. changeOrigin: true
  18. }
  19. }
  20. },
  21. build: {
  22. outDir: 'dist',
  23. assetsDir: 'assets',
  24. sourcemap: false,
  25. rollupOptions: {
  26. output: {
  27. chunkFileNames: 'assets/js/[name]-[hash].js',
  28. assetFileNames: 'assets/[ext]/[name]-[hash].[ext]'
  29. }
  30. }
  31. }
  32. })