Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

xwxtwd/wepy-plugin-img2base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wepy 图片转base64插件

由于很久以前就转回原生,不用wepy了,也没时间优化功能。加上WeCOS 小程序瘦身工具的出现,这个项目不维护了!!

安装

npm install wepy-plugin-img2base64 --save-dev

配置wepy.config.js

module.exports.plugins = {
    'img2base64': {
        css: true,
        html: true,
        path: './app/assets/images'
    }
};

参数说明

下一版本支持: css: 是否读取css中的本地图片路径,并转换成base64 html: 读取中的src属性,判断是本地图片路径,是否转换成base64 path: 图片存放路径

About

小程序组件化开发框架 WePy 插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published