laravel-react
v1.0.3
Published
Laravel Elixir React
Downloads
5
Readme
Laravel Elixir - React
npm install laravel-react --save-dev
Then require laravel-react
in your gulpfile.
Pretty simple.
var elixir = require('laravel-elixir');
require('laravel-react');
elixir(function(mix) {
mix.elixirReactify({
inputFile: './resources/assets/js/react/app.js',
inputFileName: 'bundle.js',
outputDirectory: 'public/js/',
watch: './resources/assets/js/react/**'
})
.version(['public/js/bundle.js']);
});
Arguments:
- inputFile src
- inputFileName file
- outputDirectory dest
- watch trigger elixir watch