babel-plugin-prefix-jsx-styles
v0.0.4
Published
A babel plugin for automatically adding vendor prefixes to inline styles in JSX
Downloads
7
Maintainers
Readme
babel-plugin-prefix-jsx-styles
Usage
Install both the babel plugin (as dev dependency), and the underlying auto prefixing library (as a dependency).
npm install --save-dev babel-plugin-prefix-jsx-styles
npm install --save prefix-inline-style
Add ["prefix-jsx-styles"]
to the "plugins"
property of your .babelrc
For example, your .babelrc
might look like:
{
"presets": ["react", "es2015"],
"plugins": ["transform-decorators-legacy", "prefix-jsx-styles"]
}