feat: 添加一个无关痛痒的浏览器llm的支持,添加自动导入,
This commit is contained in:
1 parent
81360c377c
commit
34d7c7df30
8 files changed
+871
-3
No files matched your search
+23
-1
@@ -3,13 +3,32 @@ import vue from "@vitejs/plugin-vue";
|
||||
import { resolve } from "path";
|
||||
// import { viteSingleFile } from 'vite-plugin-singlefile'
|
||||
import { visualizer } from 'rollup-plugin-visualizer'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [
|
||||
vue(),
|
||||
visualizer()
|
||||
visualizer(),
|
||||
AutoImport({
|
||||
imports: [
|
||||
'vue',
|
||||
{
|
||||
'naive-ui': [
|
||||
'useDialog',
|
||||
'useMessage',
|
||||
'useNotification',
|
||||
'useLoadingBar'
|
||||
]
|
||||
}
|
||||
]
|
||||
}),
|
||||
Components({
|
||||
resolvers: [NaiveUiResolver()]
|
||||
})
|
||||
// viteSingleFile()
|
||||
],
|
||||
resolve: {
|
||||
@@ -42,5 +61,8 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 支持Web Worker
|
||||
worker: {
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user