-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
91 lines (80 loc) · 1.93 KB
/
Copy pathvite.config.ts
File metadata and controls
91 lines (80 loc) · 1.93 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { ViteAliases } from "vite-aliases";
// https://vitejs.dev/config/
export default defineConfig({
//配置本地跨域
assetsInclude: ["**/*.riv"],
server: {
proxy: {
"/danmu": {
target: "https://api.prprpr.me/dplayer",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/danmu/, ""),
},
},
},
css: {
//配置css
modules: {
localsConvention: "camelCaseOnly",
},
preprocessorOptions: {
less: {
math: "always",
globalVars: {
primary: "#292b35",
darkPrimary: "#8B979F",
/**
* #ffffff
*/
white: "#ffffff",
/**
* #598eb4
*/
specialText: "#598eb4",
/**
* #737373
*/
gray: "#9B9B9B",
lightGray: "#C1C1C1",
/**
* #404041
*/
black: "#333333",
/**
* #4fb2ff
*/
blue: "#72caff",
lightBlue: "#EAF7FF",
/**
* #e7f7fe
*/
background: "#F6F6F6",
/**
* #ff5f71
*/
red: "#FD7E7E",
darkRed:"#ff5f71",
purple: "#B888FC",
green: "#82DD5F",
lightGreen: "#EEF8EA",
yellow: "#FFDF57",
yellowLight: "#FFCC50",
/**
* 分割线
*/
light: "#EFF1F4",
darkLight: "#E1E5E9",
badge: "#FF5F5F",
card: "#F5F7F9",
mediumGrey: "#D3D9E2",
mediumWhite: "#fafafa",
ranking: ["#FFC948", "#FD7E7E", "#4F86E0"],
uploadingYel: "#feffe6",
},
},
},
},
plugins: [react(), ViteAliases()],
});