mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix(web): remove warn and error console log removal (#1086)
* fix(web): remove warn and error console log removal * chore: comment explaining VITE_ALLOW_CONSOLE_LOGS
This commit is contained in:
@@ -80,9 +80,11 @@ export default defineNuxtConfig({
|
||||
|
||||
vite: {
|
||||
plugins: [
|
||||
// Only remove non-critical console methods when VITE_ALLOW_CONSOLE_LOGS is false
|
||||
// Keeps console.warn and console.error for debugging purposes
|
||||
!process.env.VITE_ALLOW_CONSOLE_LOGS &&
|
||||
removeConsole({
|
||||
includes: ['log', 'warn', 'error', 'info', 'debug'],
|
||||
includes: ['log', 'info', 'debug'],
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user