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 } } } })