Skip to content

Commit

Permalink
feat: add vite-plugin-dev-inspector to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsf committed Aug 28, 2024
1 parent e22b9de commit 8c6a2ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite-plugin-dev-inspector": "^2.2.4"
}
}
6 changes: 6 additions & 0 deletions demo/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { defineConfig } from 'vite'
import { resolve }from 'path'
import inspector from 'vite-plugin-dev-inspector'

// https://vitejs.dev/config/
const rootPtah = resolve(__dirname, "../");
export default defineConfig({
rootPtah,
base: "./",
plugins: [
inspector({
toggleButtonVisibility: 'never'
}),
],
resolve: {
alias: [
{
Expand Down

0 comments on commit 8c6a2ab

Please sign in to comment.