Skip to content

A wepy plugin for that generates rpx units from pixel units, it also can generate units which you want.

License

Notifications You must be signed in to change notification settings

yingye/wepy-plugin-px2units

Repository files navigation

wepy框架px2units插件

npm version change-log

本插件不支持 wepy 2.x 版本,新的版本已经支持 postcss 插件了,文档地址:compiler-postcss,推荐使用:postcss-px2units

安装

npm install wepy-plugin-px2units --save-dev

配置wepy.config.js

module.exports.plugins = {
  'px2units': {
    filter: /\.wxss$/
    // 忽略 abc.wxss 文件示例
    // filter: /(?<!\/abc)\.wxss$/i
  },
};

参数说明

postcss-px2units

About

A wepy plugin for that generates rpx units from pixel units, it also can generate units which you want.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published