Browse Source

feat(gui-v2): add icons resolver to component auto-loader

pull/3019/head
braks 2 years ago
parent
commit
b2648acd8f
  1. 4
      packages/nc-gui-v2/nuxt.config.ts

4
packages/nc-gui-v2/nuxt.config.ts

@ -2,6 +2,7 @@ import path from 'path'
import { defineNuxtConfig } from 'nuxt' import { defineNuxtConfig } from 'nuxt'
import vueI18n from '@intlify/vite-plugin-vue-i18n' import vueI18n from '@intlify/vite-plugin-vue-i18n'
import Icons from 'unplugin-icons/vite' import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite' import Components from 'unplugin-vue-components/vite'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
import monacoEditorPlugin from 'vite-plugin-monaco-editor' import monacoEditorPlugin from 'vite-plugin-monaco-editor'
@ -68,6 +69,9 @@ export default defineNuxtConfig({
AntDesignVueResolver({ AntDesignVueResolver({
importStyle: 'less', importStyle: 'less',
}), }),
IconsResolver({
prefix: false,
}),
], ],
}), }),
monacoEditorPlugin({ monacoEditorPlugin({

Loading…
Cancel
Save