forked from stephenml/kbone-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminiprogram.config.js
More file actions
51 lines (49 loc) · 944 Bytes
/
miniprogram.config.js
File metadata and controls
51 lines (49 loc) · 944 Bytes
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
module.exports = {
origin: 'https://test.miniprogram.com',
entry: '/',
router: { 'app': ['/'] },
redirect: {
notFound: 'app',
accessDenied: 'app'
},
generate: {
app: 'noconfig',
appWxss: 'default',
autoBuildNpm: 'yarn'
},
app: {
navigationStyle: 'custom'
},
appExtraConfig: {
sitemapLocation: 'sitemap.json'
},
global: {
share: true,
windowScroll: false,
backgroundColor: '#F7F7F7',
rem: true
},
pages: {},
optimization: {
domSubTreeLevel: 10,
elementMultiplexing: true,
textMultiplexing: true,
commentMultiplexing: true,
domExtendMultiplexing: true,
styleValueReduce: 5000,
attrValueReduce: 5000
},
projectConfig: {
appid: 'wxc862cf3c3ef5c3ae',
projectname: 'binnie'
},
packageConfig: {
name: 'binnie'
},
// vue-cli 相关配置
vue: {
entryFileName: 'main.mp.ts',
cdnPath: '/',
cdnLimit: 10240
}
}