Uses stylis to add vendor prefixes to both property and value.
yarn add fela-plugin-prefixer
You may alternatively use npm i --save fela-plugin-prefixer
.
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()],
})
{
display: 'flex',
appearance: 'none'
}
{
display: 'webkit-box;display:-webkit-flex;display:flex',
WebkitAppearance: 'none;-moz-appearance:none;appearance:none'
}
Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with ♥ by @robinweser and all the great contributors.