Skip to content

Commit

Permalink
chore: add vite-plugin-inspect in playground to make debugging easi…
Browse files Browse the repository at this point in the history
…er (#593)
  • Loading branch information
tobiasdiez committed May 12, 2024
1 parent d20cc09 commit 30cb703
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11,772 deletions.
7 changes: 7 additions & 0 deletions playground/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { StorybookConfig } from '@storybook-vue/nuxt'
import Inspect from 'vite-plugin-inspect'

const config: StorybookConfig = {
stories: [
Expand All @@ -17,5 +18,11 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
viteFinal: (config) => {
// For debugging purposes
// View intermediate state of Vite plugins at http://localhost:6006/__inspect
config.plugins.push(Inspect())
return config
},
}
export default config
6 changes: 5 additions & 1 deletion playground/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Nuxt 3 Minimal Starter
# Playground

View intermediate state of Vite plugins at `http://localhost:6006/__inspect`.

---

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

Expand Down
5 changes: 3 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"devDependencies": {
"@nuxt/devtools": "^1.1.5",
"@nuxtjs/storybook": "workspace:*",
"@storybook/addon-links": "^8.0.8",
"@storybook/addon-essentials": "^8.0.8",
"@storybook/addon-interactions": "^8.0.8",
"nuxt": "^3.11.1"
"@storybook/addon-links": "^8.0.8",
"nuxt": "^3.11.1",
"vite-plugin-inspect": "^0.8.4"
}
}

0 comments on commit 30cb703

Please sign in to comment.