chatwork / react-stylify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository has been discontinued. The reason is that react-style has already died.

react-stylify

js-next/react-style browserify plugin

Installation

$ npm install --save-dev git://github.com/chatwork/react-stylify.git

Usage

CLI

$ browserify script.jsx -t react-stylify --outfile bundle.jsx

package.json

  "browserify": {
    "transform": [
      "react-stylify"
    ]
  },

Attention

Please do not use { harmony: true } option for react.

gulp.task('react', function () {
    var react = require('gulp-react');
    return gulp.src(['src/**/*.jsx'])
        .pipe(react({ harmony: true })) // Do not use this option.
        .pipe(gulp.dest('dist/'))
    ;
});

Use the 6to5/6to5ify instead.

  "browserify": {
    "transform": [
      "react-stylify",
      "6to5ify"
    ]
  },

License

MIT

About

License:MIT License


Languages

Language:JavaScript 100.0%