mirror of
https://git.hmsn.ink/kospo/helptalk/user.git
synced 2026-03-19 19:05:19 +09:00
36 lines
760 B
JavaScript
36 lines
760 B
JavaScript
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
import commonjs from 'vite-plugin-commonjs'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(),commonjs()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
},
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css', '.vue'],
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern-compiler',
|
|
},
|
|
},
|
|
},
|
|
define: {
|
|
global: 'window',
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://talk.kospo.co.kr:8040',
|
|
changeOrigin: true,
|
|
secure:false,
|
|
ws:false
|
|
}
|
|
}
|
|
}
|
|
}) |