1.0.1 • Published 8 years ago

babel-plugin-react-autoprefix v1.0.1

Weekly downloads
176
License
MIT
Repository
github
Last release
8 years ago

babel-plugin-react-autoprefix

Adds vendor prefixes to inline styles in React elements through autoprefix.

Build Status

Installation

$ npm install babel-plugin-react-autoprefix

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["react-autoprefix"]
}

Via CLI

$ babel --plugins react-autoprefix script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["react-autoprefix"]
});

Changing the matching pattern

The plugin will match style props by default. If you want to match other props, like styleSomething, you can use the plugin's matcher option, e.g. in .babelrc:

{
  "plugins": ["react-autoprefix", { matcher: /^style.*$/ }]
}
1.0.1

8 years ago

1.0.0

8 years ago

1.0.0-beta.1

8 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago