0.1.2 • Published 9 years ago

laravel-elixir-react v0.1.2

Weekly downloads
10
License
MIT
Repository
github
Last release
9 years ago

##DEPRECATED: Babel is now included on elixir by default.

React-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated

laravel-elixir-react

Simple extension to laravel elixir to precompile Facebook React JSX templates into javascript.

Install

npm install --save-dev laravel-elixir-react

Usage

Example Gulpfile:

var elixir = require("laravel-elixir");

require("laravel-elixir-react");

elixir(function(mix) {
    mix.react("app.jsx");
});

First argument is the entry point of your application (default directory is resources/assets/js). In third argument you could pass react options. In production bundle will be compressed.

Advanced example

elixir(function(mix) {
    mix.react("app.jsx", {
    	output: "app.js",
        sourceMap: false,
        harmony: false,
        sourceFilename: "app.js.map",
        stripTypes: false
    });
});
0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago