Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 931 Bytes

File metadata and controls

30 lines (22 loc) · 931 Bytes

createPrefixer(data)

Creates a custom static prefixer function with your custom browser support range. It should be used together with generateData provided by inline-style-prefixer/generator to generate the required data.

Arguments

  1. data (Object): An object containing the prefixMap and plugins list
    - (generated with inline-style-prefixer/generator - check how to generate your own)

Returns

(Function): Returns a custom prefixAll function.

Example

import createPrefixer from 'inline-style-prefixer/static/createPrefixer'

import staticData from './generatedData'

export default createPrefixer(
  staticData
)

which can the be used e.g.

import prefixAll from './customPrefixAll'

const prefixed = prefixAll({
  transition: '300ms all linear',
  flex: 1
})