-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.js
71 lines (70 loc) · 1.9 KB
/
app.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
60
61
62
63
64
65
66
67
68
69
70
71
/**
@params App通用配置
*/
const appConfig = {
version: "1.0.0", // app 版本号
routerWhiteLists: [
'/',
"/home",
// "/about",
"/home/home",
"/layout/user",
"/layout/star",
"/layout/buy",
"/page/defaultPage",
"/page/defaultLayout",
], // 未登入 路由白名单
cdn: {
// 开发环境
development: {
link: [],
script: [],
},
// 测试环境
test: {
link: [],
script: [],
},
// 生产环境
production: {
link: [],
script: [],
},
// 公共环境加载
common: {
link: [
// "https://cdn.bootcss.com/font-awesome/5.13.0/css/all.css",
// "https://cdn.jsdelivr.net/npm/[email protected]/lib/index.css"
],
script: [
// "https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js",
// "https://cdn.jsdelivr.net/npm/[email protected]/lib/vant.min.js",
// "https://unpkg.com/axios/dist/axios.min.js",
// "https://unpkg.com/vue-i18n/dist/vue-i18n.js",
// "https://unpkg.com/@better-scroll/core@latest/dist/core.min.js"
],
},
}, // cdn资源目录 html自动cdn引入
dll: [
"@better-scroll/core",
"axios",
"better-scroll",
"dayjs",
"echarts",
"lib-flexible",
"lodash",
"nprogress",
"vant",
"vue",
"vue-i18n",
"vue-router",
"vuex",
], // 这里是需要缓存的模块和插件
isOpenDll: false, // 是否开启dll 缓存 上面的dll 数组依赖这个开关 (npm run dll 也依赖这个开关) true 一定要先执行一次 npm run dll 不然开发环境启动不起来
initThemeColor: "red", // 初始化主题颜色 defualt red blue green orange,
isOpenAsyncRoutes: true, // 开启动态路由权限
isShowKeFu: false, // 是否显示客服
isNprogress: true, // 是否展示顶部进度条
isBetterScroll: false, // 是否开启布局页的betterScroll
};
module.exports = appConfig;