
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
postcss-px-to-vw-strong
Advanced tools
Support for converting CSS units (which convert PX by default) into viewport units (VW, VH, VMIN, and VMAX) support for custom units to customize the transformation content
postcss插件ts开发环境和项目模板搭建
husky和lint-stage集成自动代码格式、语法修复和自动单元测试postcss-px-to-vw-strong插件开发postcss-pixel-to-viewport插件原有的全部功能支持个性化定制单位
定制一个新的单位名称如
nx可以配置使用这个单位时的行为
- 是否开启转换
vw,默认开启,如果关闭的话,使用此单位,默认返回px,实现更细节的控制px到视口单位的转换- 个性化返回,可以使用一个函数,来控制使用此单位的时候,返回的什么内容,覆盖原来的尺寸,比如给每个尺寸都加上
2px。如果没有关闭vw转换,那么会使用behavior重新计算后的值来换算为vw返回css属性末尾追加内容,可以定义在转换后的新的css属性值追加一些字符串- 配置真实的替换单位,替换自定义单位。
css中使用自定义的单位;px,可以配置其他真实的转换单位替换px,比如embehavior函数,来接收每一个自定义单位的原始值,对其进行二次操作,二次操作后的值会继续输入插件进行处理joinString属性,可以定义在转换后的新的css属性值追加一些字符串npm i postcss-px-to-vw-strong
or
yarn add postcss-px-to-vw-strong
FAQs
Support for converting CSS units (which convert PX by default) into viewport units (VW, VH, VMIN, and VMAX) support for custom units to customize the transformation content
The npm package postcss-px-to-vw-strong receives a total of 1 weekly downloads. As such, postcss-px-to-vw-strong popularity was classified as not popular.
We found that postcss-px-to-vw-strong demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.