feat: 增加 dev tools 支持
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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()] }),
|
||||
|
||||
Reference in New Issue
Block a user