createPrefixer

September 5, 2018 ยท View on GitHub

Creates a prefix function with a custom browser support range. It should be used together with the generateData API to generate the required data.

Arguments

ArgumentTypeDescription
data(Object)an object containing the a valid prefixMap and a plugins list

Returns

(Function): custom prefix function

Example

import { createPrefixer } from 'inline-style-prefixer'

const prefix = createPrefixer({
  prefixMap: __YOUR_PREFIX_MAP__,
  plugins: __YOUR_PLUGINS__
})