-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
huixisheng
authored and
huixisheng
committed
Mar 24, 2018
1 parent
22d9eb9
commit 5eebaf9
Showing
9 changed files
with
114 additions
and
15,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* | ||
!src/index.js | ||
!README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
Oops, something went wrong.