becem-gharbi / nuxt-naiveui

Unofficial Naive UI module for Nuxt
https://nuxt-naiveui.bg.tn
MIT License
163 stars 20 forks source link

perf!: generate theme config at build #78

Closed becem-gharbi closed 2 months ago

becem-gharbi commented 2 months ago

With this PR, the theme config object is generated at build time instead of runtime. This reduces both the bundle size as theme generators (generateAntdColorThemes and generateTailwindColorThemes) are no longer included and the NaiveConfig setup time as themes are already merged.

As a breaking change, theme configuration is no longer done on app.config instead on nuxt.config via naiveui.themeConfig property.

export default defineNuxtConfig({
  naiveui: {
    themeConfig: {},
  },
});
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
iconify-icon-sets ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 10:51am
nuxt-naiveui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 10:51am