prod build drop console.log
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -5,6 +5,11 @@ import { fileURLToPath, URL } from 'node:url'
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
|
esbuild: {
|
||||||
|
// Marque console.log comme "pure" : esbuild le retire du build minifié
|
||||||
|
// (console.warn/error sont conservés). Sans effet en dev server.
|
||||||
|
pure: ['console.log'],
|
||||||
|
},
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
|
|||||||
Reference in New Issue
Block a user