Skip to content

Commit

Permalink
chore: add Inspector(developer open vscode)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmthsea committed May 29, 2024
1 parent a8377f8 commit e1f385f
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 9 deletions.
3 changes: 3 additions & 0 deletions build/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { themePreprocessorPlugin } from "@pureadmin/theme";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import { genScssMultipleScopeVars } from "../src/layout/theme";
import { vitePluginFakeServer } from "vite-plugin-fake-server";
import Inspector from "vite-plugin-vue-inspector";

export function getPluginsList(
VITE_CDN: boolean,
Expand All @@ -28,6 +29,8 @@ export function getPluginsList(
include: [pathResolve("../locales/**")]
}),
viteBuildInfo(),
// 选中DOM 打开IDE
Inspector(),
/**
* 开发环境下移除非必要的vue-router动态路由警告No match found for location with path
* 非必要具体看 https:/vuejs/router/issues/521 和 https:/vuejs/router/issues/359
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
"vite-plugin-fake-server": "^2.1.1",
"vite-plugin-remove-console": "^2.2.0",
"vite-plugin-router-warn": "^1.0.0",
"vite-plugin-vue-inspector": "^5.1.2",
"vite-svg-loader": "^5.1.0",
"vue-eslint-parser": "^9.4.2",
"vue-tsc": "^1.8.27"
Expand Down
72 changes: 63 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1f385f

Please sign in to comment.