Skip to content

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

Notifications You must be signed in to change notification settings

huixisheng/wepy-plugin-image

Repository files navigation

wepy-plugin-image

支持wepy2插件根据图片大小转base64或者上传七牛

配置

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

  • 测试用例
  • 去除脚手架生成的webpack

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published