Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-flexibility

7rulnik168kMIT3.0.0

PostCSS plugin for Flexibility polyfill

postcss, css, postcss-plugin, flex, flexbox, polyfill, flexibility

readme

PostCSS Flexibility

NPM version Build Status Dependency Status devDependency Status Coverage Status XO code style

PostCSS plugin for Flexibility.

.foo {
    display: flex;
}

will be processed to:

.foo {
    -js-display: flex;
    display: flex;
}

Installation

$ npm install --save-dev postcss postcss-flexibility

Usage

postcss([ require('postcss-flexibility') ])

See PostCSS docs for examples for your environment.

Excluding rules

You can exclude rule from transformation by adding /* flexibility-disable */ comment.

.foo {
    /* flexibility-disable */
    display: flex;
}

will be processed to:

.foo {
    /* flexibility-disable */
    display: flex;
}

License

MIT © Valentin Semirulnik

changelog

3.0.0

  • Drop PostCSS 7 and migrate to new Postcss 8 API (@YozhEzhi#141)
  • Drop node@10. Support node@12+.

2.0.0

  • Support inline-flex (@idanen - #109)
  • Ugrade PostCSS to 6.0.1
  • Drop node@4. Support only LTS and stable

1.1.1

  • Support exclude rules via loud comments /*! flexibility-disable */ (@simoneldevig - #101)

1.1.0

  • Add ability for exclude rules from transformation

1.0.3

  • Fix issue with add node if it's already exist
  • Rewrite for ES6

1.0.2

  • Add code coverage.
  • Update README.

1.0.1

  • Fix bug with prefixes.

1.0.0

  • Initial release.