mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 09:16:15 -04:00
feat(dx): auto resolve vue components
This commit is contained in:
parent
2293f63a79
commit
4ccd73c2d1
5 changed files with 96 additions and 117 deletions
|
@ -7,6 +7,8 @@ import markdown from 'vite-plugin-md';
|
|||
import svgLoader from 'vite-svg-loader';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import AutoImport from 'unplugin-auto-import/vite';
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
|
@ -69,6 +71,9 @@ export default defineConfig({
|
|||
],
|
||||
},
|
||||
}),
|
||||
Components({
|
||||
resolvers: [NaiveUiResolver()],
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue