cotomy 0.1.62 → 0.1.63
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 +11 -0
- package/dist/browser/cotomy.js +2898 -0
- package/dist/browser/cotomy.js.map +1 -0
- package/dist/browser/cotomy.min.js +2 -0
- package/dist/browser/cotomy.min.js.map +1 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -47,6 +47,17 @@ By passing HTML and CSS strings to the constructor, it is possible to generate E
|
|
|
47
47
|
## Development
|
|
48
48
|
|
|
49
49
|
Cotomy ships with both ESM (`dist/esm`) and CommonJS (`dist/cjs`) builds, plus generated type definitions in `dist/types`.
|
|
50
|
+
For direct `<script>` usage, browser-ready bundles are available at `dist/browser/cotomy.js` and `dist/browser/cotomy.min.js` (also served via the npm `unpkg` entry).
|
|
51
|
+
Include the minified build like so:
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<script src="https://unpkg.com/cotomy/dist/browser/cotomy.min.js"></script>
|
|
55
|
+
<script>
|
|
56
|
+
const el = new Cotomy.CotomyElement("<div>Hello</div>");
|
|
57
|
+
document.body.appendChild(el.element);
|
|
58
|
+
</script>
|
|
59
|
+
```
|
|
60
|
+
|
|
50
61
|
Run the build to refresh every target bundle:
|
|
51
62
|
|
|
52
63
|
```bash
|