import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

export default defineConfig({
  plugins: [
    uni(),
  ],
  server: {
	  port: 8080,
	  host: true,
	  open: false,
	  proxy: {
		  // https://cn.vitejs.dev/config/#server-proxy
		  // '/api': {
		  // 	target: 'https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api',
		  // 	changeOrigin: true,
		  // 	rewrite: (p) => p.replace(/^\/api/, '')
		  // }
	  },
  },
  build: {
	  minify: 'terser',
	//   terserOptions: {
	// 	  compress: {
	// 		  drop_console: true,
	// 	  },
	//   },
  },
})
