-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoumi_config.js
37 lines (35 loc) · 1.58 KB
/
doumi_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
/**
* 构建路径配置
*/
var proSrcRootPath = '/Users/gy/WebstormProjects/doumi_b_web/';
var proDistRootPath = '/Users/gy/WebstormProjects/doumi_b_web/dist/';
var remoteStaticResDomain = '//sta.doumi.com/src/b_im'; //如果是测试发布,不要用localhost。phantom不支持
var remoteApiDomain = '//vip.doumi.com';
exports.buildRootPathConfig = {
projectSrcRootPath: proSrcRootPath,
//资源根目录
jsSrcRootPath : proSrcRootPath,
cssSrcRootPath : proSrcRootPath,
imgSrcRootPath : proSrcRootPath,
htmlSrcRootPath : proSrcRootPath,
//glob目录
jsGlobPath : [proSrcRootPath + '/static/js/**/*.js', '!' + proSrcRootPath + '/static/js/**/widget/**/*.js'],
jsLibGlobPath : proSrcRootPath + '/common/js_lib/**/*.js',
cssGlobPath : [proSrcRootPath + '/static/css/**/*.css', proSrcRootPath + '/static/css/**/*.less', proSrcRootPath + '/static/less/**/*.less', proSrcRootPath + '/common/css_lib/**/*.css',proSrcRootPath + '/common/js_lib/**/*.css'],
imgGlobPath : proSrcRootPath + '/static/img/**/*.*',
htmlGlobPath : proSrcRootPath + '/view/**/*.html',
//发布目录
jsDistRootPath : proDistRootPath,
cssDistRootPath : proDistRootPath,
imgDistRootPath : proDistRootPath,
htmlDistRootPath : proDistRootPath
}
//远程根路径配置:线上静态文件的实际根目录。
exports.remoteRootPathConfig = {
js : remoteStaticResDomain,
css : remoteStaticResDomain,
img : remoteStaticResDomain,
beApiRootPath : remoteApiDomain
}
exports.proSrcRootPath = proSrcRootPath;
exports.proDistRootDir = proDistRootPath;