vite.prod.config.ts 501 B

1234567891011121314151617181920212223242526
  1. import { defineConfig } from 'vite'
  2. import Vue from '@vitejs/plugin-vue'
  3. import * as CompilerSFC from '@vue/compiler-sfc'
  4. export default defineConfig({
  5. build: {
  6. modulePreload: false,
  7. target: 'esnext',
  8. minify: 'terser',
  9. terserOptions: {
  10. format: { comments: false },
  11. compress: {
  12. pure_getters: true,
  13. },
  14. },
  15. },
  16. clearScreen: false,
  17. plugins: [
  18. Vue({
  19. compiler: CompilerSFC,
  20. features: {
  21. optionsAPI: false,
  22. },
  23. }),
  24. ],
  25. })