ai-chat-alternative / chatui /vite.config.js
OsamaBinLikhon's picture
Upload ChatUI Vue.js application
8171e28 verified
raw
history blame contribute delete
565 Bytes
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
build: {
outDir: 'dist',
assetsDir: 'assets',
rollupOptions: {
output: {
manualChunks: {
vendor: ['vue', 'vue-router', 'pinia'],
utils: ['axios', '@vueuse/core', 'marked']
}
}
}
},
server: {
port: 5173,
host: true
}
})