Switch branches/tags
react-fela@7.3.0 react-fela@7.2.0 react-fela@7.0.1 react-fela@6.2.4 react-fela@6.2.3 react-fela@6.2.2 react-fela@6.2.1 react-fela@6.2.0 react-fela@6.1.1 react-fela@6.0.2 react-fela@6.0.1 react-fela@6.0.0 react-fela@5.3.0 react-fela@5.2.1 react-fela@5.2.0 react-fela@5.0.0 preact-fela@7.3.0 preact-fela@7.2.0 preact-fela@7.0.1 preact-fela@6.2.4 preact-fela@6.2.3 preact-fela@6.2.2 preact-fela@6.2.1 preact-fela@6.2.0 preact-fela@6.1.1 preact-fela@6.0.2 preact-fela@6.0.1 preact-fela@6.0.0 preact-fela@5.3.0 preact-fela@5.2.1 preact-fela@5.2.0 preact-fela@5.0.0 performance-benchmarks@0.0.13 performance-benchmarks@0.0.12 performance-benchmarks@0.0.10 performance-benchmarks@0.0.9 performance-benchmarks@0.0.8 performance-benchmarks@0.0.7 performance-benchmarks@0.0.6 inferno-fela@8.2.0 inferno-fela@8.1.0 inferno-fela@7.0.1 inferno-fela@6.2.4 inferno-fela@6.2.3 inferno-fela@6.2.2 inferno-fela@6.2.1 inferno-fela@6.2.0 inferno-fela@6.1.1 inferno-fela@6.0.2 inferno-fela@6.0.1 inferno-fela@6.0.0 inferno-fela@5.3.0 inferno-fela@5.2.1 inferno-fela@5.2.0 inferno-fela@5.0.0 fela@6.1.8 fela@6.1.7 fela@6.1.3 fela@6.1.2 fela@6.1.1 fela@6.1.0 fela@6.0.2 fela@6.0.1 fela@6.0.0 fela@5.2.0 fela@5.1.1 fela@5.1.0 fela@5.0.0 fela-utils@8.0.7 fela-utils@8.0.6 fela-utils@8.0.3 fela-utils@8.0.2 fela-utils@8.0.1 fela-utils@8.0.0 fela-utils@7.0.2 fela-utils@7.0.1 fela-utils@7.0.0 fela-utils@6.0.1 fela-utils@6.0.0 fela-utils@5.0.5 fela-utils@5.0.0 fela-tools@5.1.6 fela-tools@5.1.5 fela-tools@5.1.2 fela-tools@5.1.1 fela-tools@5.1.0 fela-tools@5.0.14 fela-tools@5.0.10 fela-tools@5.0.9 fela-tools@5.0.8 fela-tools@5.0.7 fela-tools@5.0.6 fela-tools@5.0.5 fela-tools@5.0.0 fela-statistics@5.0.21 fela-statistics@5.0.20 fela-statistics@5.0.17 fela-statistics@5.0.16 fela-statistics@5.0.15 fela-statistics@5.0.14
Nothing to show
Find file History
TxHawks Publish
 - babel-plugin-fela@1.0.14
 - fela-bindings@2.3.0
 - fela-combine-arrays@1.0.8
 - fela-dom@7.0.8
 - fela-font-renderer@5.0.24
 - fela-identifier@1.0.3
 - fela-layout-debugger@6.0.15
 - fela-logger@5.0.21
 - fela-monolithic@5.0.22
 - fela-native@5.0.21
 - fela-plugin-custom-property@7.0.3
 - fela-plugin-embedded@5.2.8
 - fela-plugin-extend@6.0.6
 - fela-plugin-fallback-value@5.0.18
 - fela-plugin-friendly-pseudo-class@5.0.17
 - fela-plugin-important@6.0.2
 - fela-plugin-logger@5.0.5
 - fela-plugin-named-keys@1.0.3
 - fela-plugin-native-media-query@6.0.8
 - fela-plugin-placeholder-prefixer@5.0.19
 - fela-plugin-prefixer@5.0.19
 - fela-plugin-remove-undefined@5.0.20
 - fela-plugin-simulate@6.0.6
 - fela-plugin-unit@5.0.17
 - fela-plugin-validator@5.2.0
 - fela-preset-dev@6.1.0
 - fela-preset-web@8.0.7
 - fela-statistics@5.0.21
 - fela-tools@5.1.6
 - fela-utils@8.0.7
 - fela@6.1.8
 - inferno-fela@8.2.0
 - preact-fela@7.3.0
 - react-fela@7.3.0
 - example-angular2-typescript@2.0.23
 - example-inferno@2.0.27
 - example-preact@2.0.27
 - example-react-native@1.0.26
 - example-react@2.0.27
 - example-typescript@1.0.11
 - example-with-styleguidist@1.0.19
 - performance-benchmarks@0.0.13
Latest commit ebbe233 May 23, 2018
Permalink
..
Failed to load latest commit information.
src #525 fix null conversion and use safer isPlainObject; closes #525 Mar 12, 2018
LICENSE update licenses Jun 22, 2017
README.md #354 update pkg.jsons Sep 2, 2017
package.json Publish May 23, 2018
yarn.lock add extend tests Mar 13, 2018

README.md

fela-plugin-prefixer

npm version npm downloads

Uses inline-style-prefixer/static to add vendor prefixes to both property and value.

Requires to use fela-plugin-fallback-value afterwards in order to resolve alternative prefix values which get returned as an array by default.

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', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex' ],
  WebkitAppearance: 'none',
  MozAppearance: 'none',
  appearance: 'none'
}

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.