vite.prod.config.ts 409 B

12345678910111213141516171819202122
  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: false,
  9. terserOptions: {
  10. compress: {
  11. pure_getters: true,
  12. },
  13. },
  14. },
  15. clearScreen: false,
  16. plugins: [
  17. Vue({
  18. compiler: CompilerSFC,
  19. }),
  20. ],
  21. })