@yhwh-script/shadow-h4x 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,9 +23,16 @@ Please stick to the following conventions! When working with Vite (recommended),
|
|
|
23
23
|
}
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
This will autogenerate a map of your WebComponents inside the `
|
|
26
|
+
This will autogenerate a map of your WebComponents inside the `src/components` folder.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
<script type="module">
|
|
30
|
+
import('@yhwh-script/shadow-h4x')
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
33
|
+
After importing shadow-h4x your WebComponents will be defined in the CustemElements registry. This is a feature! You don't have to register your elements manually. Just put them into the publis folder.
|
|
27
34
|
|
|
28
35
|
Important:
|
|
29
36
|
|
|
30
37
|
Each WebComponent must be located in a subfolder under `public/components`, for instance:
|
|
31
|
-
`router/router-app.html`.
|
|
38
|
+
`public/components/router/router-app.html`.
|
package/package.json
CHANGED