install atropos (demo on /wait)
All checks were successful
Deploy App / deploy (push) Successful in 1m49s
All checks were successful
Deploy App / deploy (push) Successful in 1m49s
This commit is contained in:
9
app/plugins/01.atropos.ts
Normal file
9
app/plugins/01.atropos.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { defineNuxtPlugin } from '#app'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
if (process.client) {
|
||||
import('atropos/element').then(({ default: AtroposComponent }) => {
|
||||
customElements.define('atropos-component', AtroposComponent)
|
||||
})
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user