gullu-css 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +4 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,35 +28,18 @@ npm install gullu-css
28
28
 
29
29
  Because it's an ES6 module, you can easily drop it into standard HTML, React, Vue, Next.js, or any modern framework.
30
30
 
31
- ### Vanilla JS / HTML
32
- Browsers natively require a path to the file when using HTML ES Modules. To get that crisp `import "gullu-css"` look, you can use an **Import Map**.
31
+ ### Vanilla HTML (Via CDN)
32
+ The easiest way to get started is to import Gullu CSS straight from `unpkg` as a module directly in your HTML. No build step required!
33
33
 
34
34
  ```html
35
- <!-- Register local NPM package in Import Map -->
36
- <script type="importmap">
37
- {
38
- "imports": {
39
- "gullu-css": "./node_modules/gullu-css/main.js"
40
- }
41
- }
42
- </script>
43
-
44
35
  <script type="module">
45
- // Now you can cleanly import it exactly like you would in React!
46
- import { initEngine } from "gullu-css";
36
+ import { initEngine } from "https://unpkg.com/gullu-css@1.0.1/main.js";
47
37
  initEngine();
48
38
  </script>
49
39
  ```
50
40
 
51
- ### ⚡ Use via CDN (No NPM Required)
52
- Don't want to use NPM at all? You can load Gullu CSS straight from `unpkg` as a module directly in your HTML!
41
+ ---
53
42
 
54
- ```html
55
- <script type="module">
56
- import { initEngine } from "https://unpkg.com/gullu-css@1.0.1/main.js";
57
- initEngine();
58
- </script>
59
- ```
60
43
 
61
44
  ### React / Next.js
62
45
  You can trigger the engine during page mount or context initialization:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gullu-css",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A zero-build, ultra-fast runtime utility CSS engine.",
5
5
  "main": "main.js",
6
6
  "type": "module",