mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 00:55:34 +00:00
30 lines
595 B
JavaScript
30 lines
595 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
Components({
|
|
dirs: ['resources/vue/'],
|
|
extensions: ['vue'],
|
|
deep: true,
|
|
dts: false,
|
|
}),
|
|
vue(),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/webUiSettings.json': {
|
|
target: 'http://localhost:1337',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
'/api': {
|
|
target: 'http://localhost:1337',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
}
|
|
},
|
|
},
|
|
})
|