Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yingye/wepy-plugin-px2units

A wepy plugin for that generates rpx units from pixel units, it also can generate units which you want.
https://github.com/yingye/wepy-plugin-px2units

postcss px2rpx px2units wepy wepy-plugin

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# wepy框架px2units插件

[![npm version](https://badge.fury.io/js/wepy-plugin-px2units.svg)](https://badge.fury.io/js/wepy-plugin-px2units)
[![change-log](https://img.shields.io/badge/changelog-md-blue.svg)](https://github.com/yingye/wepy-plugin-px2units/blob/master/CHANGELOG.md)

本插件不支持 wepy 2.x 版本,新的版本已经支持 postcss 插件了,文档地址:[compiler-postcss](https://wepyjs.github.io/wepy-docs/2.x/#/plugin/official?id=compiler-postcss),推荐使用:[postcss-px2units](https://github.com/yingye/postcss-px2units) 。

## 安装

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

## 配置`wepy.config.js`

```js
module.exports.plugins = {
'px2units': {
filter: /\.wxss$/
// 忽略 abc.wxss 文件示例
// filter: /(?