var autoprefixer = require('mix-autoprefixer');
var browserify = require('mix-browserify');
var files = require('mix-files');
var minifyCss = require('mix-minify-css');
var mix = require('mix');
var rev = require('mix-rev');
var sass = require('mix-sass');
var serve = require('mix-serve');
var stats = require('mix-stats');
var uglify = require('mix-uglify');
var write = require('mix-write');

var html = files({ base: 'src', globs: 'index.html' });
var scripts = files({ base: 'src', globs: 'scripts/app.jsx' })
    .pipe(browserify({
        extensions: ['.js', '.jsx'],
        configure: function (b) {
            b.transform('reactify');
            b.require('../node_modules/react/react.js', { expose: 'react' });
        }
    }))
    .pipe(uglify());
var styles = files({ base: 'src', globs: 'styles/app.scss' })
    .pipe(sass())
    .pipe(autoprefixer('last 2 versions', 'ie 9'))
    .pipe(minifyCss());
var build = mix.combine(html, scripts, styles)
    .pipe(rev())
    .pipe(stats());
build.pipe(write('build/'));
build.pipe(serve(3000));

var autoprefixer = require('mix-autoprefixer');
var browserify = require('mix-browserify');
var files = require('mix-files');
var minifyCss = require('mix-minify-css');
var mix = require('mix');
var rev = require('mix-rev');
var sass = require('mix-sass');
var serve = require('mix-serve');
var stats = require('mix-stats');
var uglify = require('mix-uglify');
var write = require('mix-write');

var html = files({ base: 'src', globs: 'index.html' });
var scripts = files({ base: 'src', globs: 'scripts/app.jsx' })
    .pipe(browserify({
        extensions: ['.js', '.jsx'],
        configure: function (b) {
            b.transform('reactify');
            b.require('../node_modules/react/react.js', { expose: 'react' });
        }
    }));
var styles = files({ base: 'src', globs: 'styles/app.scss' })
    .pipe(sass())
    .pipe(autoprefixer('last 2 versions', 'ie 9'));

var build = mix.combine(html, scripts, styles);
build
    .pipe(rev())
    .pipe(serve(3000));

var prodScripts = scripts.pipe(uglify());
var prodStyles = styles.pipe(minifyCss());
var prodBuild = mix.combine(html, prodScripts, prodStyles);
prodBuild
    .pipe(rev())
    .pipe(stats())
    .pipe(write('build/'));

Improve example mixfile