-
Notifications
You must be signed in to change notification settings - Fork 0
/
fis-conf.js
64 lines (58 loc) · 1.79 KB
/
fis-conf.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
fis.config.merge({
roadmap : {
path : [
{
reg : /^\/.+-aio.*\.css$/i,
release : "/static/news/other/summary$&"
},
{
reg : /^\/.+-aio.*\.js$/i,
release : "/static/news/other/summary$&"
},
// GMU-ui, VS-ui涉及的图片均inline进来
{
reg : /^\/summary\/.+\.(png|gif|jpg|jpeg)$/i,
release : "/static/news/other/summary$&"
},
{
reg : /summary\.html$/i,
release : '/template/summary/summary.html'
}
]
// , domain: {
// '**.js': 'http://m.baidu.com'
// ,'**.css': 'http://m.baidu.com'
// ,'**.png': 'http://m.baidu.com'
// ,'**.gif': 'http://m.baidu.com'
// ,'**.jpg': 'http://m.baidu.com'
// ,'**.jpeg': 'http://m.baidu.com'
// }
}
});
fis.config.merge({
settings : {
optimizer : {
'uglify-js' : {
output : {
/* inline js,单行过长,可能导致smarty解析失败,所以设置最大行大小 */
max_line_len : 500
}
}
, 'clean-css' : {
keepBreaks : true
}
}
}
});
fis.config.set('modules.parser', {
//less后缀的文件使用fis-parser-less插件编译
//处理器支持数组,或者逗号分隔的字符串配置
less : ['less'],
});
//fis-conf.js
fis.config.set('roadmap.ext', {
//less后缀的文件将输出为css后缀
//并且在parser之后的其他处理流程中被当做css文件处理
less : 'css',
});
fis.config.del('modules.optimizer.html');