vite-svg-sprite-generator-plugin 1.1.2 → 1.1.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.
- package/README.md +4 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -109,15 +109,13 @@ The plugin automatically **injects the sprite directly into your HTML** as an in
|
|
|
109
109
|
Look for this in your HTML:
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<svg id="icon-sprite" class="svg-sprite"
|
|
113
|
-
|
|
114
|
-
<symbol id="
|
|
115
|
-
<symbol id="user">...</symbol>
|
|
116
|
-
</defs>
|
|
112
|
+
<svg id="icon-sprite" class="svg-sprite" style="display: none;">
|
|
113
|
+
<symbol id="home" viewBox="0 0 24 24">...</symbol>
|
|
114
|
+
<symbol id="user" viewBox="0 0 24 24">...</symbol>
|
|
117
115
|
</svg>
|
|
118
116
|
```
|
|
119
117
|
|
|
120
|
-
The sprite is **injected at the
|
|
118
|
+
The sprite is **injected at the start of your HTML** (just after `<body>` tag).
|
|
121
119
|
|
|
122
120
|
## 🎨 Vite Compliance
|
|
123
121
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-svg-sprite-generator-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Production-ready Vite plugin for automatic SVG sprite generation with HMR support, SVGO optimization, and security features",
|
|
5
5
|
"main": "vite-svg-sprite-generator-plugin.js",
|
|
6
6
|
"module": "vite-svg-sprite-generator-plugin.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/gkarev/vite-svg-sprite-generator-plugin.git"
|
|
46
|
+
"url": "git+https://github.com/gkarev/vite-svg-sprite-generator-plugin.git"
|
|
47
47
|
},
|
|
48
48
|
"bugs": {
|
|
49
49
|
"url": "https://github.com/gkarev/vite-svg-sprite-generator-plugin/issues"
|