Style
/ API Reference / Plugins
Style
/ API Reference / Plugins

prefixer

This plugin adds vendor prefixes to style properties and values when required.

The Gist

import { prefixerPlugin } from '@weser/style'

const plugin = prefixerPlugin()

Fallbacks

This plugin also exports a list of fallbacks for values that can't otherwise be prefixed.
Add those to your createRenderer function to be safe.

import { prefixerFallbacks } from '@weser/style'

Returns

(Plugin) A plugin function that can be passed to the createRenderer function.

On this page