-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -273,6 +273,39 @@ const app = createApp() | |
app.use(vuetify).mount('#app') | ||
``` | ||
|
||
## Using ES Modules | ||
Use the same links as above but put them in an import map | ||
|
||
```js | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"vue": "https://unpkg.com/vuelatest/dist/vue.esm-browser.js", | ||
"vuetify": "https://unpkg.com/[email protected]/dist/vuetify.esm.js" | ||
} | ||
} | ||
</script> | ||
``` | ||
|
||
and than import from `vuetify` (and `vue`) with | ||
|
||
```js | ||
<script type="module"> | ||
const apiUrl = 'http://zeugnis-admin.localhost/' | ||
import { createApp } from 'vue' | ||
import { createVuetify } from 'vuetify' | ||
|
||
const vuetify = createVuetify() | ||
createApp().use(vuetify).mount('#app') | ||
</script> | ||
``` | ||
|
||
and make sure to link the css | ||
|
||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css"> | ||
``` | ||
|
||
## Using Vitepress | ||
|
||
You can use Vuetify's components in your Vitepress static site. | ||
|