Skip to content

Commit

Permalink
docs: add awesome-vite link in Backend Integrations section (#1586)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
ElMassimo and antfu committed Mar 15, 2021
1 parent 103dec9 commit 6d5c9c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/guide/backend-integration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Backend Integration

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:
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).

Or you can follow these steps to configure it manually:

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

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

0 comments on commit 6d5c9c6

Please sign in to comment.