File tree 2 files changed +80
-5
lines changed 2 files changed +80
-5
lines changed Original file line number Diff line number Diff line change 5
5
- [ fis-postprocessor-autoprefixer] ( #fis-postprocessor-autoprefixer )
6
6
- [ fis3-deploy-local-deliver ] ( #fis3-deploy-local-deliver )
7
7
- [ fis3-deploy-pack] ( #fis3-deploy-pack )
8
- - [ fis3-deploy-replace] ( #fis3-deploy-replace )
9
8
- [ fis3-deploy-skip-packed] ( #fis3-deploy-skip-packed )
10
9
- [ fis3-hook-annotation ] ( #fis3-hook-annotation )
11
10
- [ fis3-hook-commonjs] ( #fis3-hook-commonjs )
19
18
20
19
## fis-parser-imweb-tpl
21
20
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
+
22
33
## fis-postprocessor-autoprefixer
23
34
35
+ 对css做自动添加-webikit-等前缀处理
36
+
24
37
## fis3-deploy-local-deliver
25
38
39
+ 写入dev/dist目录文件
40
+
26
41
## fis3-deploy-pack
27
42
28
- ## fis3-deploy-replace
43
+ 生成离线包zip文件
29
44
30
45
## fis3-deploy-skip-packed
31
46
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
+ ```
33
69
34
70
## fis3-hook-commonjs
35
71
72
+
36
73
## fis3-hook-lego
37
74
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
+
38
87
## fis3-parser-babel
39
88
89
+ es6 babel parse
90
+
40
91
## fis3-parser-node-sass
41
92
93
+ sass parse
94
+
42
95
## fis3-postpackager-inline
43
96
97
+ 将小的资源文件自动inline至html
98
+
99
+ * css: <20kb; js: <10kb;(gzip前)*
100
+
44
101
## fis3-postpackager-loader
45
102
46
- ## fis3-prepackager-imweb-ques
103
+ - 分析html入口main.js的所有依赖
104
+ - dist时将所有文件打包成一个文件
47
105
48
106
## fis3-prepackager-ques
49
107
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
+
Original file line number Diff line number Diff line change @@ -63,5 +63,6 @@ fis3 release dist
63
63
64
64
## 常见问题
65
65
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 )
67
68
You can’t perform that action at this time.
0 commit comments