Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huixisheng/wepy-plugin-image
wepy插件根据图片大小是否转base64、上传七牛
https://github.com/huixisheng/wepy-plugin-image
Last synced: about 2 months ago
JSON representation
wepy插件根据图片大小是否转base64、上传七牛
- Host: GitHub
- URL: https://github.com/huixisheng/wepy-plugin-image
- Owner: huixisheng
- Created: 2018-03-23T10:01:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T15:44:48.000Z (over 5 years ago)
- Last Synced: 2024-08-03T21:03:39.555Z (5 months ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wepy - wepy-plugin-image: wepy插件根据图片大小是否转base64、上传七牛
README
# wepy-plugin-image
> 支持wepy2插件根据图片大小转base64或者上传七牛
## 配置 ##
[pack-qiniu配置](https://github.com/huixisheng/pack-qiniu)
## 0.1.x
> 支持wepy2.x```
const wepyPluginImage = require('wepy-plugin-image');// `wepy.config.js`
module.exports = {
plugins: [
wepyPluginImage,
],
```## 0.0.x
> 支持`wepy1.7.x``wepy.config.js`
```
module.exports.plugins = {
image: {
debugMode, // 用于显示调试显示
limit: 10240, // 大于10kb
},
}
```## TODO ##
- [x] 测试用例
- [x] 去除脚手架生成的webpack