Home

Awesome

babel-plugin-pre-style

npm install --save babel-plugin-pre-style

npm version

This is the Babel Plugin for Pre-Style. Refer to the root project for configuration options and general information. Note: This plugin does not work with the command line options of the original tool. You must use and specify a config file.

To use with Babel, add the following to your .babelrc file:

{
  "plugins": [
    ["pre-style", { "config": "path/to/PreStyleConfig.js" }]
  ]
}

Examples

Simple Button example

With React, Webpack, and Hot Module Reloading: