<commit_before>[![NPM version](https://badge.fury.io/js/fis-optimizer-tpl-compress.png)](http://badge.fury.io/js/fis-optimizer-tpl-compress)

[![NPM Download](https://nodei.co/npm-dl/fis-optimizer-tpl-compress.png?months=1)](https://www.npmjs.org/package/fis-optimizer-tpl-compress)

# fis-optimizer-tpl-compress
>F.I.S (Smarty)模板压缩(优化)插件

## 如何使用？

```bash
npm install -g fis-optimizer-tpl-compress
```

### 配置 fis-conf.js
在配置文件(默认fis-conf.js)配置

```javascript
fis.config.merge({
    modules : {
        optimizer : {
            tpl : 'tpl-compress'
        }
    }
});
```
## 更多资料
[fis]: https://github.com/fex-team/fis
[fis-plus]: https://github.com/fex-team/fis-plus<commit_msg>update read<commit_after>[![NPM version](https://badge.fury.io/js/fis-optimizer-tpl-compress.png)](http://badge.fury.io/js/fis-optimizer-tpl-compress)

[![NPM Download](https://nodei.co/npm-dl/fis-optimizer-tpl-compress.png?months=1)](https://www.npmjs.org/package/fis-optimizer-tpl-compress)

# fis-optimizer-tpl-compress
>F.I.S (Smarty)模板压缩(优化)插件

## 功能概述

* 自定义(Smarty)模板边界符
* 去除\r \n \t以及多余的空格
* 优化页面中script代码(去除单行&多行注释)
* 最终将模板代码优化为一行

## 如何使用？

```bash
npm install -g fis-optimizer-tpl-compress
```

### 配置 fis-conf.js

```javascript
fis.config.merge({
    modules : {
        optimizer : {
            tpl : 'tpl-compress'
        }
    }
});
```
## 更多资料

[fis](https://github.com/fex-team/fis) 前端集成解决方案
[fis-plus](https://github.com/fex-team/fis-plus)
[fis-optimizer-html-compress](https://github.com/pianist829/fis-optimizer-html-compress)
{'fraction_non_alphanumeric': 0.2077073807968648, 'fraction_numerical': 0.0032658393207054214, 'mean_word_length': 3.6707317073170733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6825630', 'n_tokens_mistral': 725, 'n_tokens_neox': 739, 'n_words': 60}