Skip to content

Commit

Permalink
Add Vite Ruby section to FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
thewmking authored May 15, 2024
1 parent fdac6eb commit ab4b497
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,23 @@ export default defineNuxtConfig({
}
})
```

## How to work with [Vite Ruby](https://vite-ruby.netlify.app/)?

```ts
import { defineConfig } from "vite";

Check failure on line 67 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Strings must use singlequote

Check failure on line 67 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Extra semicolon
import RubyPlugin from "vite-plugin-ruby";

Check failure on line 68 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Strings must use singlequote

Check failure on line 68 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Extra semicolon
import vue from "@vitejs/plugin-vue";

Check failure on line 69 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Strings must use singlequote

Check failure on line 69 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Extra semicolon
import VueDevTools from "vite-plugin-vue-devtools";

Check failure on line 70 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Strings must use singlequote

Check failure on line 70 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Extra semicolon

export default defineConfig({
plugins: [
VueDevTools({
appendTo: "app/frontend/entrypoints/application.js", // your app entrypoint (wherever you call createApp())

Check failure on line 75 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Strings must use singlequote
}),
RubyPlugin(),
vue(),
],
});

Check failure on line 80 in docs/guide/faq.md

View workflow job for this annotation

GitHub Actions / ci

Extra semicolon

```

0 comments on commit ab4b497

Please sign in to comment.