fela-plugin-prefixer

12.2.1 • Public • Published

fela-plugin-prefixer

npm version npm downloads Bundlephobia

Uses stylis to add vendor prefixes to both property and value.

Installation

yarn add fela-plugin-prefixer

You may alternatively use npm i --save fela-plugin-prefixer.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import prefixer from 'fela-plugin-prefixer'

const renderer = createRenderer({
  plugins: [prefixer()],
})

Example

Input

{
  display: 'flex',
  appearance: 'none'
}

Output

{
  display: 'webkit-box;display:-webkit-flex;display:flex',
  WebkitAppearance: 'none;-moz-appearance:none;appearance:none'
}

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with by @robinweser and all the great contributors.

/fela-plugin-prefixer/

    Package Sidebar

    Install

    npm i fela-plugin-prefixer

    Weekly Downloads

    22,917

    Version

    12.2.1

    License

    MIT

    Unpacked Size

    16.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • rofrischmann
    • txhawks