46 lines
1012 B
JavaScript
46 lines
1012 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
vueDevTools(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
devOptions: {enabled: true},
|
|
manifest: {
|
|
name: 'Horde Hub',
|
|
short_name: 'horde-hub',
|
|
description: 'Chat with Horde agents',
|
|
background_color:"#181818",
|
|
theme_color: '#42b883',
|
|
icons: [
|
|
{
|
|
src: 'icon-192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
},
|
|
{
|
|
src: 'icon-512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png'
|
|
}
|
|
]
|
|
}
|
|
}),
|
|
],
|
|
build: {
|
|
sourcemap: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
},
|
|
},
|
|
})
|