How to use icons in both .vue files and .jsx files? #313
-
The icon displays normally in export default [
vue(),
vueJsxPlugin(),
AutoImport({
resolvers: [ElementPlusResolver()],
imports: ['vue', 'vue-router', 'pinia'],
dirs: ['src/store/**/*'],
vueTemplate: true,
defaultExportByFilename: false,
dts: './config/auto-imports.d.ts',
eslintrc: {
enabled: true,
filepath: './config/.eslintrc-auto-import.json',
globalsPropValue: true
}
}),
Components({
resolvers: [
ElementPlusResolver(),
VueUseComponentsResolver(),
IconsResolver({
prefix: false,
enabledCollections: ['ep']
})
],
dirs: ['src/components', 'src/layouts'],
directoryAsNamespace: false,
dts: './config/components.d.ts'
}),
Icons({
autoInstall: true,
compiler: 'vue3'
})
]; |
Beta Was this translation helpful? Give feedback.
Answered by
Matthijz98
Apr 18, 2024
Replies: 1 comment 1 reply
-
You can add a second Icons() Like This
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wjw020206
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add a second Icons()
Like This