1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import path from 'path'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- 'Timor': path.resolve(__dirname, '../Timor')
- },
- },
- css:{
- preprocessorOptions:{
- less:{
- javascriptEnabled: true
- }
- }
- },
- build:{
- assetsDir:"public"
- },
- define: {
- 'process.env': {}
- },
- // server: {
- // host: "0.0.0.0",
- // proxy: {
- // '/test': {
- // target: 'http://dmrv.360chief.com',// http://10.199.40.73:8080
- // changeOrigin: true,
- // rewrite: (path) => path.replace(/^\/test/, '')
- // },
- // }
- // },
- server: {
- host: "0.0.0.0",
- proxy: {
- '/test': {
- secure: false,
- target: 'https://dmrv-test.fuxicarbon.com', // http://10.199.40.73:8080
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/test/, '')
- },
- '/curriculum': {
- secure: false,
- target: 'https://insight.fuxicarbon.com', // http://10.199.40.73:8080
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/curriculum/, '')
- },
- }
- }
- })
|