/wepy-plugin-px2units

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

Primary LanguageJavaScriptMIT LicenseMIT

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