Skip to content

Commit

Permalink
docs: update faq
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Apr 24, 2024
1 parent b6e1cee commit 5e4e9ec
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/guide/FAQ.md

This file was deleted.

44 changes: 44 additions & 0 deletions docs/guide/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Frequently Asked Questions

## I can't use the Open In Editor feature

The feature is based on the [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector) plugin and requires configuration, which you can do by looking at the [configuration documentation](https://github.com/webfansplz/vite-plugin-vue-inspector?tab=readme-ov-file#--configuration-ide--editor).

## How to work with Laravel Vite Plugin?

```ts
import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import VueDevTools from 'vite-plugin-vue-devtools'

export default defineConfig({
plugins: [
DevTools({
appendTo: 'resources/js/app.js'
}),
laravel([
'resources/js/app.js',
]),
],
})
```

## How to work with Nuxt3? (v7.1.3+)

:::tip Recommendation
We still recommend using [Nuxt DevTools](https://github.com/nuxt/devtools) for a better development experience.
:::

```ts
// nuxt.config.ts

export default defineNuxtConfig({
vite: {
plugins: [
VueDevTools({
appendTo: /\/entry\.m?js$/,
})
]
}
})
```

0 comments on commit 5e4e9ec

Please sign in to comment.