Package Exports
- fis-prepackager-css-image-set
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fis-prepackager-css-image-set) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fis-prepackager-css-image-set
A FIS prepackager for css image-set
一个fis插件,用于移动端,给不同的手机屏幕适配不同清晰度的背景图片,优化加载速度
介绍、原理
自动为css文件增加-webkit-image-set规则,并对目标图片进行缩放
安装
npm install -g fis-prepackager-css-image-set
配置
在fis-config.js中加入以下配置
fis.config.set('modules.prepackager', fis.config.get('modules.prepackager') + ',css-image-set');
编译
fisp release -Domupl