Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xwxtwd/wepy-plugin-img2base64
小程序组件化开发框架 WePy 插件
https://github.com/xwxtwd/wepy-plugin-img2base64
Last synced: 2 months ago
JSON representation
小程序组件化开发框架 WePy 插件
- Host: GitHub
- URL: https://github.com/xwxtwd/wepy-plugin-img2base64
- Owner: xwxtwd
- Archived: true
- Created: 2017-06-22T08:32:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T08:16:13.000Z (over 6 years ago)
- Last Synced: 2024-11-09T14:03:58.686Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wepy - wepy-plugin-img2base64:小程序图片转base64的WePy插件
README
# wepy 图片转base64插件
## 由于很久以前就转回原生,不用wepy了,也没时间优化功能。加上WeCOS 小程序瘦身工具的出现,这个项目不维护了!!
## 安装
```
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: 图片存放路径