vite.config.js 568 B

12345678910111213141516171819202122232425262728293031
  1. import { defineConfig } from 'vite';
  2. import uni from '@dcloudio/vite-plugin-uni';
  3. export default defineConfig({
  4. plugins: [uni()],
  5. define: {
  6. __VUE_I18N_FULL_INSTALL__: false,
  7. __VUE_I18N_LEGACY_API__: false,
  8. __VUE_I18N_PROD_DEVTOOLS__: false,
  9. __VUE_I18N_SSR__: false
  10. },
  11. build: {
  12. rollupOptions: {
  13. output: {
  14. compact: true
  15. }
  16. },
  17. minify: 'terser',
  18. terserOptions: {
  19. compress: {
  20. drop_console: true,
  21. },
  22. output: {
  23. comments: true
  24. }
  25. },
  26. },
  27. server: {
  28. port: 4000
  29. }
  30. });