Commit e6023389 authored by 王玉鑫's avatar 王玉鑫

feat: 打包时去除log

parent 6c1a58d9
......@@ -13,6 +13,9 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
// https://vitejs.dev/config/
export default defineConfig({
esbuild: {
drop: ['console'],
},
plugins: [
vue(),
vueJsx(),
......@@ -33,14 +36,6 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
// minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
},
},
},
server: {
host: '0.0.0.0',
proxy: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment