wepy-plugin-img2base64
v1.0.8
Published
wepy image plugin image to base64
Downloads
15
Readme
wepy 图片转base64插件
安装
npm install wepy-plugin-img2base64 --save-dev
配置wepy.config.js
module.exports.plugins = {
'img2base64': {
css: true,
html: true,
path: './app/assets/images'
}
};
参数说明
下一版本支持: css: 是否读取css中的本地图片路径,并转换成base64 html: 读取中的src属性,判断是本地图片路径,是否转换成base64 path: 图片存放路径