Skip to content

Commit 4406dcb

Browse files
committed
build: Enable console in dev mode
1 parent 16f71e8 commit 4406dcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* eslint-disable node/prefer-global/process */
21
import path from 'node:path'
2+
import process from 'node:process'
33
import { loadEnv } from 'vite'
44
import type { ConfigEnv, UserConfig } from 'vite'
55

@@ -60,8 +60,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
6060

6161
viteVConsole({
6262
entry: [path.resolve('src/main.ts')],
63-
localEnabled: command === 'serve',
64-
enabled: false,
63+
enabled: command === 'serve',
6564
config: {
6665
maxLogNumber: 1000,
6766
theme: 'light',

0 commit comments

Comments
 (0)