首页 > 其他分享 >vite项目中使用vconsole、eruda调试器说明

vite项目中使用vconsole、eruda调试器说明

时间:2023-01-03 01:12:22浏览次数:43  
标签:eruda yarn vconsole add vite 调试器

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'
})

标签:eruda,yarn,vconsole,add,vite,调试器
From: https://www.cnblogs.com/szq233/p/17020930.html

相关文章