Skip to content

Commit

Permalink
Merge pull request #22 from gnuletik/docs/add-modulepreload-polyfill
Browse files Browse the repository at this point in the history
docs(README): add modulepreload-polyfill
  • Loading branch information
MrBin99 authored Dec 14, 2021
2 parents 116f61f + 17c5e37 commit 014438f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ export default defineConfig({
}
```
### Assets
As recommended on Vite's [backend integration guide](https://vitejs.dev/guide/backend-integration.html), your assets should include the modulepreload polyfill.
```javascript
// add the beginning of your app entry
import 'vite/modulepreload-polyfill'
```
## Usage
### Configuration
Expand Down

0 comments on commit 014438f

Please sign in to comment.