-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
59 lines (57 loc) · 2.09 KB
/
vue.config.js
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
const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
// host: "localhost",
/* 本地ip地址 */
//host: "192.168.0.131",
host: "www.uric.cn", //局域网和本地访问
port: "80",
// hot: true,
/* 自动打开浏览器 */
// open: false,
/*overlay: {
warning: false,
error: true
},*/
/* 跨域代理 */
/*proxy: {
"/api": {
/!* 目标代理服务器地址 *!/
target: "http://xxxx.top", //
/!* 允许跨域 *!/
changeOrigin: true,
ws: true,
pathRewrite: {
"^/api": ""
}
}
}*/
},
// 主题色
// vue.config.js for [email protected], please run: cnpm install [email protected]
css: {
loaderOptions: {
less: {
lessOptions: {
modifyVars: {
'primary-color': '#1DA57A', // 全局主色
'link-color': '#1890ff', // 链接色
'success-color': '#1DA57A', // 成功色
'warning-color': '#faad14', // 警告色
'error-color': '#f5222d', // 错误色
'heading-color': 'rgba(0, 0, 0, 0.85)', // 标题色
'text-color': 'rgba(0, 0, 0, 0.65)', // 主文本色
'text-color-secondary': 'rgba(0, 0, 0, 0.45)', // 次文本色
'disabled-color': 'rgba(0, 0, 0, 0.25)', // 失效色
'border-color-base': '#d9d9d9', // 边框色
'font-size-base': '14px', // 主字号
'border-radius-base': '2px', // 组件/浮层圆角
'box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)', // 浮层阴影
},
javascriptEnabled: true,
},
},
},
},
})