mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Merge branch 'next' of https://github.com/shoelace-style/shoelace into next
This commit is contained in:
@@ -36,8 +36,13 @@ import { defineCustomElements, setAssetPath } from '@shoelace-style/shoelace'
|
||||
|
||||
// ...
|
||||
|
||||
const rootUrl = document.currentScript.src.replace(/\/packs.*$/, '')
|
||||
|
||||
// Path to the assets folder (should be independent on the current script source path
|
||||
// to work correctly in different environments)
|
||||
setAssetPath(rootUrl + '/packs/js/')
|
||||
|
||||
// This enables all web components for the current page
|
||||
setAssetPath(document.currentScript.src)
|
||||
defineCustomElements()
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user