refactor: build removeConsole conditionally skip via VITE_ALLOW_CONSOLE_LOGS env

This commit is contained in:
Zack Spear
2024-10-10 12:20:00 -07:00
committed by Eli Bosley
parent 924fa699eb
commit 14d9448e4c

View File

@@ -69,7 +69,7 @@ export default defineNuxtConfig({
vite: {
plugins: [
removeConsole({
includes: ["log", "warn", "error", "info", "debug"],
includes: process.env.VITE_ALLOW_CONSOLE_LOGS ? [] : ["log", "warn", "error", "info", "debug"],
}),
],
build: {