Skip to content

Commit 7eb5bc2

Browse files
committed
fix(nuxt): preset icons wasn't added in unocss options due to recent changes
1 parent ace470f commit 7eb5bc2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/anu-nuxt/src/module.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@ export default defineNuxtModule<ModuleOptions>({
158158
Inject preset icons extra properties into icons preset unocss options if icons preset isn't disabled.
159159
*/
160160
if (nuxt.options.unocss.icons !== false) {
161-
presetIcons(
162-
typeof nuxt.options.unocss.icons === 'object'
163-
? nuxt.options.unocss.icons
164-
: {
165-
scale: 1.2,
166-
extraProperties: presetIconExtraProperties,
167-
},
161+
nuxt.options.unocss.presets.push(
162+
presetIcons(
163+
typeof nuxt.options.unocss.icons === 'object'
164+
? nuxt.options.unocss.icons
165+
: {
166+
scale: 1.2,
167+
extraProperties: presetIconExtraProperties,
168+
},
169+
),
168170
)
169171
}
170172

0 commit comments

Comments
 (0)