arco-design / arco-plugins

Webpack / Vite plugins for Arco Design
https://arco.design
MIT License
68 stars 41 forks source link

feat: default icon prefix #46

Closed Loongphy closed 1 year ago

Loongphy commented 1 year ago

Types of changes

Background and context

When we copy the icon from the docs, it comes with a prefix of icon. However, our current configuration does not include this prefix by default. Therefore, we need to manually add a configuration in plugins to ensure consistency.

This commit simplifies the configuration, related issue: https://github.com/arco-design/arco-plugins/issues/45

export default defineConfig({
  plugins: [
    vitePluginForArco({
      iconPrefix: 'icon',
    }),
  ],
})

Solution

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues
iconPrefix增加默认值 icon iconPrefix default value icon https://github.com/arco-design/arco-plugins/issues/45

Checklist:

Other information