You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/astro-iconset/CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# astro-iconset Changelog
2
2
3
+
## 0.0.6
4
+
5
+
### Patch
6
+
7
+
- Resilient icon loading: missing icon directories and un-optimizable SVGs (e.g. embedded raster images) now warn instead of aborting the build.
8
+
- Fix: `?icon` imports resolve through Vite, adding support for path aliases including tsconfig `paths` and `resolve.alias`.
9
+
- Fix: deduplicate the "Loaded icons from …" dev log across SSR/client module evaluations.
10
+
- New `dataAttr` integration option to rename (`dataAttr: "data-astro-icon"`) or disable (`dataAttr: false`) the `data-icon` attribute. Defaults to `data-icon` (backward compatible).
Copy file name to clipboardExpand all lines: packages/astro-iconset/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,16 @@ icon({
223
223
224
224
To use only `iconDirs` for the default local set, set `iconDirs.local` instead of `iconDir`. Do not set both `iconDir` and `iconDirs.local`.
225
225
226
+
### `dataAttr`
227
+
228
+
The data attribute added to each rendered icon for CSS targeting. Defaults to `"data-icon"`. Pass a custom string to rename it, or `false` to remove it entirely.
229
+
230
+
```js
231
+
icon({
232
+
dataAttr:"data-astro-icon", // or false to disable
233
+
});
234
+
```
235
+
226
236
### `svgoOptions`
227
237
228
238
Override default SVGO behavior. See [SVGO configuration](https://github.com/svg/svgo#configuration).
0 commit comments