35 lines
725 B
TypeScript
35 lines
725 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
import Inspector from 'unplugin-vue-dev-locator/vite'
|
|
import traeBadgePlugin from 'vite-plugin-trae-solo-badge'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
sourcemap: 'hidden',
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
Inspector(),
|
|
traeBadgePlugin({
|
|
variant: 'dark',
|
|
position: 'bottom-right',
|
|
prodOnly: true,
|
|
clickable: true,
|
|
clickUrl: 'https://www.trae.ai/solo?showJoin=1',
|
|
autoTheme: true,
|
|
autoThemeTarget: '#app',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
open: true
|
|
}
|
|
})
|