vite项目中使用vconsole、eruda调试器说明
vite项目中使用vconsole、eruda调试器说明
vite中使用vconsole - 目前ios不支持3.15往后版本,3.14.7版本可用。
yarn add vconsole
yarn add vite-plugin-vconsole
 viteVConsole({
   entry: _resolve('src/main.ts'), // or you can use entry: [path.resolve('src/main.ts')]
   localEnabled: true, // 本地开发环境是否启用标识
   enabled: ENV.code === 'test',  // 打包是否启用标识
   config: {
     maxLogNumber: 1000,
     theme: 'dark'
   }
 }),
vite中使用eruda
yarn add eruda
yarn add vite-plugin-eruda - 支持度一般
eruda({
    debug: ENV.code !== 'prod'
})

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号