Skip to content

Commit

Permalink
feat: add wepy-plugin-image
Browse files Browse the repository at this point in the history
  • Loading branch information
huixisheng authored and huixisheng committed Mar 24, 2018
1 parent 22d9eb9 commit 5eebaf9
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 15,620 deletions.
15 changes: 1 addition & 14 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
{
"presets": [
["env", {
"targets": {
"browsers": [
"Android >= 4.0",
"ios >= 6",
"Edge >= 10",
"Firefox >= 20",
"Safari >= 6",
"Chrome >= 12",
"ChromeAndroid >= 4.0",
"QQAndroid >= 1.2"
]
}
}]
"es2015"
]
}
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ module.exports = {

],
env: {
browser: true,
node: true,
mocha: true,
},
globals: {
CONFIG: true,

},
settings: {

Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*
!src/index.js
!README.md
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# wepy-plugin-image

> wepy插件根据图片大小是否转base64、上传七牛
> wepy插件根据图片大小是否转base64、上传七牛
## 配置 ##

[pack-qiniu配置](https://github.com/huixisheng/pack-qiniu)

`wepy.config.js`

```
module.exports.plugins = {
image: {
limit: 10240, // 大于10kb
},
}
```

## TODO ##
- [ ] 测试用例
- [ ] 去除脚手架生成的webpack?
Loading

0 comments on commit 5eebaf9

Please sign in to comment.