Skip to content

Commit 6d5c9c6

Browse files
ElMassimoantfu
andauthored
docs: add awesome-vite link in Backend Integrations section (#1586)
Co-authored-by: Anthony Fu <[email protected]>
1 parent 103dec9 commit 6d5c9c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/guide/backend-integration.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Backend Integration
22

3-
If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but use Vite for serving assets, here's what you can do:
3+
If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but use Vite for serving assets, check for existing integrations listed in [Awesome Vite](https://github.com/vitejs/awesome-vite#integrations-with-backends).
4+
5+
Or you can follow these steps to configure it manually:
46

57
1. In your Vite config, configure the entry and enable build manifest:
68

@@ -83,3 +85,4 @@ If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel)
8385
<link rel="stylesheet" href="/assets/{{ manifest['main.js'].css }}" />
8486
<script type="module" src="/assets/{{ manifest['main.js'].file }}"></script>
8587
```
88+

0 commit comments

Comments
 (0)