Files
number/frontend/vite.config.js

34 lines
545 B
JavaScript
Raw Permalink Normal View History

2026-03-17 12:09:43 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
api: 'modern'
}
}
},
test: {
environment: 'happy-dom',
globals: true
},
2026-03-17 12:09:43 +08:00
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
server: {
port: 5173,
host: true,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
2026-03-17 12:09:43 +08:00
}
})