Disable source map in Vite config
parent
bc4d1207b9
commit
891b18592e
|
@ -8,7 +8,7 @@ export default defineConfig(({ mode }) => {
|
||||||
clearScreen: false,
|
clearScreen: false,
|
||||||
build: {
|
build: {
|
||||||
minify: 'esbuild',
|
minify: 'esbuild',
|
||||||
sourcemap: true
|
sourcemap: false
|
||||||
},
|
},
|
||||||
esbuild: {
|
esbuild: {
|
||||||
pure: mode === 'production' ? [ 'console.log' ] : [],
|
pure: mode === 'production' ? [ 'console.log' ] : [],
|
||||||
|
|
Loading…
Reference in New Issue