Socket
Socket
Sign inDemoInstall

postcss-px-to-viewport-with-include

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postcss-px-to-viewport-with-include

A CSS post-processor that converts px to viewport units (vw, vh, vmin, vmax).


Version published
Maintainers
1
Install size
33.0 kB
Created

Changelog

Source

[1.0.0] - 2019-01-28

Added

  • replace option - (Boolean) replaces rules containing vw instead of adding fallbacks.
  • propList option - (Array) The properties that can change from px to vw.
  • exclude option - (Array or Regexp) Ignore some files like node_modules.

Changed

  • zero values now remain unitless.
  • replace regexp is now case sensitive, so if you want to change px, then pX values won't be changed.

Readme

Source

postcss-px-to-viewport

NPM version

English | 中文

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units.

forked from postcss-px-to-viewport to ennabel include pramas

Keywords

FAQs

Last updated on 12 May 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc