import {
	defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vue()],
	base: '/',
	css: {
		preprocessorOptions: {
			scss: {
				additionalData: '@import "/public/style/main.scss";',
			}
		}
	},
	server: {
		host: '0.0.0.0',
		port: 8081,
		open: true,
		proxy: {
		  '^/sqx_fast': {
			target: 'http://192.168.0.10:7155',
			secure: false,
			changeOrigin: true,
		  }
		}
	  },
})