Skip to content

Commit 461b046

Browse files
committed
plugins
1 parent c68450e commit 461b046

File tree

2 files changed

+80
-5
lines changed

2 files changed

+80
-5
lines changed

Plugins.md

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- [fis-postprocessor-autoprefixer](#fis-postprocessor-autoprefixer)
66
- [fis3-deploy-local-deliver ](#fis3-deploy-local-deliver )
77
- [fis3-deploy-pack](#fis3-deploy-pack)
8-
- [fis3-deploy-replace](#fis3-deploy-replace)
98
- [fis3-deploy-skip-packed](#fis3-deploy-skip-packed)
109
- [fis3-hook-annotation ](#fis3-hook-annotation )
1110
- [fis3-hook-commonjs](#fis3-hook-commonjs)
@@ -19,31 +18,106 @@
1918

2019
## fis-parser-imweb-tpl
2120

21+
将tpl转化成js文件require使用
22+
23+
```html
24+
<!-- @file hi.tpl -->
25+
<h1>Hi. <%= name %></h1>
26+
```
27+
28+
```js
29+
var tpl = require('hi.tpl');
30+
console.log(tpl({name: 'fis.free'}));
31+
```
32+
2233
## fis-postprocessor-autoprefixer
2334

35+
对css做自动添加-webikit-等前缀处理
36+
2437
## fis3-deploy-local-deliver
2538

39+
写入dev/dist目录文件
40+
2641
## fis3-deploy-pack
2742

28-
## fis3-deploy-replace
43+
生成离线包zip文件
2944

3045
## fis3-deploy-skip-packed
3146

32-
## fis3-hook-annotation
47+
被sprite的png文件等不被发布至dist
48+
49+
## [fis3-hook-annotation](https://github.com/imweb/fis3-hook-annotation)
50+
51+
使用注解修改文件的fis属性
52+
53+
```js
54+
/**
55+
* @noWrap
56+
* @noOptimizer
57+
*/
58+
// 文件将不会使用define包裹
59+
// 文件将不会被min压缩
60+
```
61+
62+
```html
63+
<!DOCTYPE html>
64+
<!-- @setProterty pack false -->
65+
<html>
66+
<!-- 此文件不会被打进离线包 -->
67+
</html>
68+
```
3369

3470
## fis3-hook-commonjs
3571

72+
3673
## fis3-hook-lego
3774

75+
Lego组件插件组件
76+
77+
```js
78+
var util = require('util'); // 将能直接require到lego_modules/util下的组件
79+
```
80+
81+
```html
82+
<html>
83+
<script src="jquery"></script>
84+
</html>
85+
```
86+
3887
## fis3-parser-babel
3988

89+
es6 babel parse
90+
4091
## fis3-parser-node-sass
4192

93+
sass parse
94+
4295
## fis3-postpackager-inline
4396

97+
将小的资源文件自动inline至html
98+
99+
*css: <20kb; js: <10kb;(gzip前)*
100+
44101
## fis3-postpackager-loader
45102

46-
## fis3-prepackager-imweb-ques
103+
- 分析html入口main.js的所有依赖
104+
- dist时将所有文件打包成一个文件
47105

48106
## fis3-prepackager-ques
49107

108+
Ques模块化插件
109+
110+
```html
111+
<html>
112+
<head></head>
113+
<body>
114+
<index-header></index-header>
115+
<index-footer></index-footer>
116+
</body>
117+
</html>
118+
```
119+
120+
## fis3-prepackager-imweb-ques
121+
122+
不推荐使用,将被fis3-prepackager-ques代替
123+

Start.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ fis3 release dist
6363

6464
## 常见问题
6565

66-
- `node-sass`安装失败
66+
- `node-sass` 安装失败
67+
- `[WARNI] csssprites does not support your node` [fis某版本bug](https://github.com/fex-team/fis-spriter-csssprites/issues/27#issuecomment-204300858)
6768

0 commit comments

Comments
 (0)