Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
e6023389
Commit
e6023389
authored
Dec 26, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 打包时去除log
parent
6c1a58d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vite.config.mts
vite.config.mts
+3
-8
No files found.
vite.config.mts
View file @
e6023389
...
@@ -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: {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment