You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@lx-frontend/postcss-rpxtovw

Package Overview
Dependencies
Maintainers
14
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lx-frontend/postcss-rpxtovw

A CSS post-processor that converts rpx to vw.

0.0.1
latest
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
14
Weekly downloads
 
Created
Source

postcss-pxtorem

A plugin for PostCSS that generates vw units from rpx units.

由于小程序的单位为 rpx, 在使用 taro 等多端框架开发组件时,为了使组件可以在h5端预览(如使用 storybook),所以需按比例转换 rpx 单位。该插件以 750px 的设计稿为标准转换,即 750rpx === 100vw

Keywords

css

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts