-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
37 lines (36 loc) · 2.07 KB
/
package.json
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
{
"name": "fis-optimizer-tpl-compress",
"description": "A fis-plus tpl compressor optimizer tool",
"version": "0.0.8",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/exp-team/fis-optimizer-tpl-compress.git"
},
"dependencies": {
},
"keywords": [
"fis",
"fis-plus",
"tpl",
"optimizer",
"compress"
],
"bugs": {
"url": "https://github.com/exp-team/fis-optimizer-tpl-compress/issues"
},
"author": {
"name": "sobird"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/exp-team/fis-optimizer-tpl-compress/blob/master/LICENSE"
}
],
"readme": "[![NPM version](https://badge.fury.io/js/fis-optimizer-tpl-compress.png)](http://badge.fury.io/js/fis-optimizer-tpl-compress)\r\n\r\n[![NPM Download](https://nodei.co/npm-dl/fis-optimizer-tpl-compress.png?months=1)](https://www.npmjs.org/package/fis-optimizer-tpl-compress)\r\n\r\n# fis-optimizer-tpl-compress\r\n>F.I.S (Smarty)模板压缩(优化)插件\r\n\r\n## 功能概述\r\n\r\n* 自定义(Smarty)模板边界符\r\n* 去除\r \n \t以及多余的空格\r\n* 优化页面(<script type=\"text/javascript\"></script>&{%script%}{%/script%}标签中的)代码(去除单行&多行注释&多余空格)\r\n* 去除模板注释({%* 我是注释 *%})\r\n* 最终将模板代码优化为一行\r\n\r\n## 如何使用?\r\n\r\n### 安装\r\n\r\n```bash\r\nnpm install -g fis-optimizer-tpl-compress\r\n```\r\n\r\n### 配置 fis-conf.js\r\n\r\n```javascript\r\nfis.config.merge({\r\n modules : {\r\n optimizer : {\r\n tpl : 'tpl-compress'\r\n }\r\n }\r\n});\r\n```\r\n## 更多资料\r\n\r\n* [fis](https://github.com/fex-team/fis) 前端集成解决方案\r\n* [fis-plus](https://github.com/fex-team/fis-plus)\r\n* [fis-optimizer-html-compress](https://github.com/pianist829/fis-optimizer-html-compress)\r\n",
"readmeFilename": "README.md"
}