mirror of
https://github.com/unraid/api.git
synced 2025-12-30 21:19:49 -06:00
refactor: conditionally skip removeConsole plugin based on VITE_ALLOW_CONSOLE_LOGS env
This commit is contained in:
@@ -68,8 +68,8 @@ export default defineNuxtConfig({
|
||||
// },
|
||||
vite: {
|
||||
plugins: [
|
||||
removeConsole({
|
||||
includes: process.env.VITE_ALLOW_CONSOLE_LOGS ? [] : ["log", "warn", "error", "info", "debug"],
|
||||
!process.env.VITE_ALLOW_CONSOLE_LOGS && removeConsole({
|
||||
includes: ["log", "warn", "error", "info", "debug"],
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user