-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
37 lines (36 loc) · 941 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* @Author: yucongcong [email protected]
* @Date: 2022-12-06 16:15:34
* @LastEditors: yucongcong [email protected]
* @LastEditTime: 2022-12-19 16:29:04
* @FilePath: \cesiumDemo\vite.config.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
import * as path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
// reactRefresh()
],
css: {
preprocessorOptions: {
less: {
// 支持内联 JavaScript
javascriptEnabled: true,
},
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
server: {
hmr:true,
proxy: {
'/api': 'http://192.168.1.99:8103'
}
}
})