Files
hermes-agent/apps/desktop/vite.config.ts
T
2026-05-05 13:17:40 -05:00

35 lines
744 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
base: './',
plugins: [react(), tailwindcss()],
build: {
rollupOptions: {
output: {
manualChunks: {
shiki: ['react-shiki', 'shiki'],
streamdown: ['@assistant-ui/react-streamdown', '@streamdown/code', 'streamdown']
}
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@hermes/shared': path.resolve(__dirname, '../shared/src')
}
},
server: {
host: '127.0.0.1',
port: 5174,
strictPort: true
},
preview: {
host: '127.0.0.1',
port: 4174
}
})