安装插件:npm install -g fis-parser-lessnpm install -g fis3-postpackager-loader配置:fis-conf.js使用fis-parser-less 插件进行解析,.less 文件后缀构建后被改成 .css 文件fis.match('*.... Read More
posted @ 2015-11-19 21:08
tinyphp
Views(1549)
Comments(0)
Diggs(0)
设置规则的配置接口:fis.match(selector, props);1.添加md5戳:对 js、css、png 图片引用 URL 添加 md5 戳:fis.match('*.{js,css,png}', { useHash: true});2.js压缩:使用fis-optimizer-ugl... Read More
posted @ 2015-11-19 17:59
tinyphp
Views(6609)
Comments(0)
Diggs(0)
FIS默认只会进行文件打包,不会对页面中的静态资源引用进行替换,这时可以利用fis-postpackager-simple插件进行资源替换。安装:npm install -g fis-postpackager-simple开启:// fis-conf.jsfis.config.set('module... Read More
posted @ 2015-11-19 15:13
tinyphp
Views(492)
Comments(0)
Diggs(1)
fis3 的常用例子:https://github.com/fex-team/fis3-demogit链接可在页面中获取替换下面的git链接:例子准备:git clone https://github.com/hefangshi/fis-quickstart-demo.git启动本地服务器预览:fi... Read More
posted @ 2015-11-19 12:19
tinyphp
Views(1108)
Comments(0)
Diggs(0)
命令用途简写fis --version查看版本fis -vfis install安装fis release发布项目fis server start启动一个服务器用于预览项目fis server clean清空www发布目录的文件fis server open打开路径fis release --hel... Read More
posted @ 2015-11-19 11:06
tinyphp
Views(1864)
Comments(0)
Diggs(0)