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

feat: 打包时去除log

parent 6c1a58d9
...@@ -13,6 +13,9 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'; ...@@ -13,6 +13,9 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
esbuild: {
drop: ['console'],
},
plugins: [ plugins: [
vue(), vue(),
vueJsx(), vueJsx(),
...@@ -33,14 +36,6 @@ export default defineConfig({ ...@@ -33,14 +36,6 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)), '@': fileURLToPath(new URL('./src', import.meta.url)),
}, },
}, },
build: {
// minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
},
},
},
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
proxy: { 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