feat: 增加 dev tools 支持

This commit is contained in:
Huangzhe
2025-05-21 10:05:16 +08:00
parent e944984a1d
commit b15beb91ee
2 changed files with 4 additions and 1 deletions

View File

@@ -69,6 +69,7 @@
"unplugin-auto-import": "^0.18.6",
"unplugin-vue-components": "^0.27.5",
"vite": "^6.0.0",
"vite-plugin-vue-devtools": "^7.7.6",
"vitest": "^3.0.9",
"vue-tsc": "^2.0.21"
},

View File

@@ -10,7 +10,8 @@ import postCssPxToRem from 'postcss-pxtorem';
import legacy from '@vitejs/plugin-legacy';
// shift + alt 快速定位到对应组件
import { codeInspectorPlugin } from 'code-inspector-plugin';
// import tailwindcss from '@tailwindcss/vite';
// 导入 dev tools
import vueDevTools from 'vite-plugin-vue-devtools'
export default defineConfig(({ mode }) => {
// 接收 mode 参数
@@ -67,6 +68,7 @@ export default defineConfig(({ mode }) => {
},
cacheDir: '.tmp',
plugins: [
vueDevTools(),
vue(),
vueJsx(),
AutoImport({ resolvers: [VantResolver(), ElementPlusResolver()] }),