Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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、上传七牛

Awesome Lists containing this project

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