vite.config.js 353 B

1234567891011121314151617181920
  1. import { defineConfig } from 'vite'
  2. import uni from '@dcloudio/vite-plugin-uni'
  3. import AutoIpmort from 'unplugin-auto-import/vite'
  4. export default defineConfig({
  5. plugins: [
  6. uni(),
  7. AutoIpmort({
  8. imports: ['vue', 'pinia', 'uni-app']
  9. })
  10. ],
  11. build: {
  12. minify: 'terser',
  13. terserOptions: {
  14. compress: {
  15. drop_console: true,
  16. },
  17. },
  18. },
  19. })