From 5e4e9ec67aa08d8e9f5a9960d793105818c92e39 Mon Sep 17 00:00:00 2001 From: arlo Date: Wed, 24 Apr 2024 23:15:49 +0800 Subject: [PATCH] docs: update faq --- docs/guide/FAQ.md | 5 ----- docs/guide/faq.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 5 deletions(-) delete mode 100644 docs/guide/FAQ.md create mode 100644 docs/guide/faq.md diff --git a/docs/guide/FAQ.md b/docs/guide/FAQ.md deleted file mode 100644 index f2e3816b..00000000 --- a/docs/guide/FAQ.md +++ /dev/null @@ -1,5 +0,0 @@ -# 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). diff --git a/docs/guide/faq.md b/docs/guide/faq.md new file mode 100644 index 00000000..b0b69c44 --- /dev/null +++ b/docs/guide/faq.md @@ -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$/, + }) + ] + } +}) +```