Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yingye/wepy-plugin-px2units
- Owner: yingye
- License: mit
- Created: 2018-04-11T08:33:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T03:05:24.000Z (almost 2 years ago)
- Last Synced: 2024-04-20T14:16:25.425Z (7 months ago)
- Topics: postcss, px2rpx, px2units, wepy, wepy-plugin
- Language: JavaScript
- Homepage:
- Size: 161 KB
- Stars: 31
- Watchers: 3
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wepy - wepy-plugin-px2units: wepy框架px2units插件
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: /(?