Skip to content

Commit

Permalink
fix(nuxt): extra properties wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Jun 8, 2023
1 parent ad61b18 commit ee9f64e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/anu-nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,16 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.options.unocss.presets = [
...(nuxt.options.unocss.presets || []), // Don't override existing presets.
presetUno(),
presetIcons(
typeof nuxt.options.unocss.icons === 'boolean'
? {

// Icons Preset
// 鈩癸笍 `nuxt.options.unocss.icons` can also be `undefined`
nuxt.options.unocss.icons !== false && presetIcons(
typeof nuxt.options.unocss.icons === 'object'
? nuxt.options.unocss.icons
: {
scale: 1.2,
extraProperties: presetIconExtraProperties,
}
: nuxt.options.unocss.icons,
},
),
presetAnu(),
enableDefaultPreset && presetThemeDefault(),
Expand Down

0 comments on commit ee9f64e

Please sign in to comment.