postcss-viewport-units

0.1.6 • Public • Published

postcss-viewport-units

Build Status npm version

Automatically append content property for viewport-units-buggyfill.

Install

$ npm install postcss-viewport-units

Usage

See PostCSS usage section for detail.

Options

onlyCalc([Boolean]): if ture, only process calc values. it's false by default, which means, all values including vw vh vmin vmax are processed.

test([Function]): used to judge whether current value of declaration should be considered including viewport units, the default is value => /\d(vw|vh|vmax|vmin)\b/.test(value).

filterFile([Function]): used to filter out files which need be processed, you can refer to test case to see how it works.

filterRule([Function]): used to filter out rules which need be processed, you can refer to test case to see how it works.

silence([Boolean]): if true, will not print warning even though there is a content property. it's false by default.

License

MIT.

/postcss-viewport-units/

    Package Sidebar

    Install

    npm i postcss-viewport-units

    Weekly Downloads

    883

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    7.12 kB

    Total Files

    16

    Last publish

    Collaborators

    • springuper