forked from firekylin/firekylin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_theme.php
executable file
·34 lines (34 loc) · 1.71 KB
/
config_theme.php
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
<?php
//燕尾服配置文件
return array (
'TPL_ENGINE' => 'think.nunjucks', //模版引擎,支持smarty和php,小写
'TPL_LEFT_DELIMITER' => '{%', //模版左界符
'TPL_RIGHT_DELIMITER' => '%}', //模版右界符
'TPL_SUFFIX' => 'html', //模板文件后缀名
'TPL_PATH' => 'www/theme/firekylin.build/html', //模板根目录
'STATIC_PATH' => 'www/theme/firekylin/res', //静态资源的目录
'FILE_ENCODING' => 'utf-8', //项目编码 utf-8或者gbk
'MOD_ENCODING_CHECK' => true, //文件编码检测
'MOD_DIRS_CHECK' => true, //目录结构检测
'MOD_FILE_CHECK' => true, //文件命名和位置检测
'MOD_HTML_REGULAR_CHECK' => true, //HTML规范检测
'MOD_CSS_REGULAR_CHECK' => true, //CSS规范检测
'MOD_CSS_SPRITES' => false, //css sprites
'MOD_CSS_AUTOCOMPLETE' => false, //css样式自动补全
'MOD_JS_COMBINE' => true, //JS文件是否启用合并
'MOD_CSS_COMBINE' => true, //CSS文件是否启用合并
'MOD_HTML_COMPRESS' => true, //HTML文件是否启用压缩
'MOD_JS_COMPRESS' => true, //JS文件是否启用压缩
'MOD_CSS_COMPRESS' => true, //CSS文件是否启用压缩
'MOD_OPTI_IMG' => false, //优化图片
'MOD_XSS_AUTO_FIXED' => false, //模版型XSS自动修复
'MOD_IMG_DATAURI' => false, //CSS中的图片地址转换为dataURI
'MOD_STATIC_TO_CDN' => false, //静态资源上线到CDN
'MOD_JS_TPL_REPLACE' => false, //前端模版替换
'MOD_EXTERNAL_TO_INLINE' => false, //外链资源编译为内联资源
'MOD_STRING_REPLACE' => false, //代码替换功能
'MOD_STATIC_VERSION' => 1, //静态文件版本号,1或者true为query,2为新文件模式
'MOD_INLINE_TO_LS2' => true,
// 'COMPRESS_JS_USE_JINGCHUANG' => false,
'LS_APP_ID' => '3e988cdb',
);