很简单,直接在vite.config.ts里面添加配置即可:
export default ({ mode }) => defineConfig({ build: { minify: "terser", terserOptions: { compress: { //生产环境时移除console drop_console: true, drop_debugger: true, }, } } })
此处我只给了build的配置,其他的配置需要自己去添加
很简单,直接在vite.config.ts里面添加配置即可:
export default ({ mode }) => defineConfig({ build: { minify: "terser", terserOptions: { compress: { //生产环境时移除console drop_console: true, drop_debugger: true, }, } } })
此处我只给了build的配置,其他的配置需要自己去添加
import requests data = { 'channel': '99x', 'called_number': '135xxx', 'tts_code': 'TTS_xx', 'tts_p