1
This commit is contained in:
+18
-3
@@ -8,7 +8,7 @@ import Components from 'unplugin-vue-components/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
// import RekaResolver from 'reka-ui/resolver'
|
||||
import UnoCSS from 'unocss/vite'
|
||||
import uncomponents from "unplugin-vue-components/vite"
|
||||
import uncomponents from 'unplugin-vue-components/vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -19,9 +19,9 @@ export default defineConfig({
|
||||
UnoCSS(),
|
||||
uncomponents({
|
||||
dts: true,
|
||||
dirs: ["src/components/"],
|
||||
dirs: ['src/components/'],
|
||||
allowOverrides: true,
|
||||
directoryAsNamespace: true
|
||||
directoryAsNamespace: true,
|
||||
}),
|
||||
// Components({
|
||||
// dts: 'src/types/components.d.ts',
|
||||
@@ -44,6 +44,21 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:47173/api',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/image': {
|
||||
target: 'http://127.0.0.1:3000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/image/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user