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
.
data
(Object): An object containing the prefixMap and plugins list
- (generated with inline-style-prefixer/generator - check how to generate your own)
(Function): Returns a custom prefixAll
function.
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
})