-
Notifications
You must be signed in to change notification settings - Fork 1
/
chameleon.config.js
70 lines (68 loc) · 1.46 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
57
58
59
60
61
62
63
64
65
66
67
68
69
// 设置静态资源的线上路径
const publicPath = 'https://beatles-chameleon.github.io/cml-todomvc/dist';
// 设置api请求前缀
const apiPrefix = 'https://api.chameleon.com';
const path = require('path');
cml.config.merge({
templateLang: 'cml',
templateType: 'html',
// builtinNpmName: 'cml-tt-ui-builtin',
extPlatform: {
tt: 'cml-tt-plugin',
},
babelPath: [
path.join(__dirname,'node_modules/cml-tt-ui-builtin'),
path.join(__dirname,'node_modules/cml-tt-runtime'),
path.join(__dirname,'node_modules/cml-tt-api'),
path.join(__dirname,'node_modules/cml-tt-ui'),
path.join(__dirname,'node_modules/cml-tt-store'),
path.join(__dirname,'node_modules/cml-tt-mixins'),
path.join(__dirname,'node_modules/mobx'),
],
baseStyle:{
wx: true,
web: true,
weex: true,
alipay: true,
baidu: true,
qq: true,
tt:true,
},
platforms: ['web', 'weex', 'wx','tt'],
buildInfo: {
wxAppId: '123456',
wxEntryPage: '',
webPath: 'https://api.chameleon.com/h5/index'
},
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
}
}
})