Skip to content

Commit

Permalink
Update sweet-needles-juggle.md
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored May 22, 2024
1 parent da9a85b commit 9f1f54a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .changeset/sweet-needles-juggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"@astrojs/vue": minor
---

Updates the `devtools` type to allow passing a boolean or `VueDevToolsOptions`. This is useful to set `launchEditor` if you're not using Visual Studio Code for example:
Updates the `devtools` type to allow passing `VueDevToolsOptions`

```js
import { defineConfig } from "astro/config"
import vue from "@astrojs/vue"
For more customization, you can pass options that the [Vue DevTools Vite Plugin](https://devtools-next.vuejs.org/guide/vite-plugin#options) supports. (Note: `appendTo` is not supported.) For example, you can set `launchEditor` to your preferred editor if you are not using Visual Studio Code:

```js title="astro.config.mjs"
import { defineConfig } from "astro/config";
import vue from "@astrojs/vue";

export default defineConfig({
// ...
integrations: [
vue({
// devtools: true is equivalent to {}
devtools: {
launchEditor: "webstorm"
}
})
]
})
devtools: { launchEditor: "webstorm" },
}),
],
});
```

0 comments on commit 9f1f54a

Please sign in to comment.