-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathchameleon.config.js
57 lines (54 loc) · 1.07 KB
/
chameleon.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
//设置静态资源的线上路径
const publicPath = 'https://beatles-chameleon.github.io/chameleon-ui-builtin/dist';
//设置api请求前缀
const apiPrefix = 'https://api.chameleon.com';
const path = require('path');
cml.config.merge({
cmlNpm: [
],
devPort: 5556,
isBuildInProject: true,
templateType: 'html',
cmlComponents: [
],
platforms: ["web","weex","baidu","wx","alipay","tt"],
buildInfo: {
wxAppId: '123456',
wxEntryPage: '',
webPath: 'https://api.chameleon.com/h5/commentinfo'
},
wx: {
dev: {
},
build: {
apiPrefix
}
},
web: {
dev: {
analysis: false,
console: false
},
build: {
analysis: false,
publicPath: `${publicPath}/web/`,
apiPrefix
}
},
weex: {
dev: {
},
build: {
publicPath: `${publicPath}/weex/`,
apiPrefix,
hash: false
},
custom: {
publicPath: `${publicPath}/wx/`,
apiPrefix
}
},
optimize: {
watchNodeModules: true // 默认不对 node_modules中的文件进行 watch,提升编译性能
}
})