You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { defineConfig } from '@vben/vite-config' ;
export default defineConfig ( {
application : {
compress : false ,
compressTypes : [ 'brotli' , 'gzip' ] ,
importmap : false ,
importmapOptions : {
// 通过 Importmap CDN 方式引入,
// 目前只有esm.sh源兼容性好一点, jspm.io对于 esm 入口要求高
defaultProvider : 'esm.sh' ,
importmap : [
{ name : 'vue' } ,
{ name : 'pinia' } ,
{ name : 'vue-router' } ,
{ name : 'vue-i18n' } ,
{ name : 'dayjs' } ,
{ name : 'vue-demi' } ,
] ,
} ,
visualizer : false ,
} ,
vite : {
server : {
proxy : {
'/vben-api' : {
changeOrigin : true ,
rewrite : ( path ) = > path . replace ( /^\/vben-api/ , '' ) ,
target : 'http://localhost:3000' ,
ws : true ,
} ,
} ,
} ,
} ,
} ) ;