- Vueify removed (in favor of Elixir extension)
gulp-babel
bumped to v6.1- Babel upgraded to v6
Breaking Changes
Babel
The main reason for the 4.0 bump is to account for Babel 6.
http://babeljs.io/blog/2015/10/29/6.0.0/
Babel no longer includes plugins out of the box, so we've updated Elixir's Babel config to reflect the new system. By default, we're pulling in the ES2015 preset, which should include everything you need when running mix.babel()
or mix.browserify()
.
If your Gulpfile was tweaking Elixir's Babel config, make sure you adjust accordingly. See here, where we swap to using a preset.
Vueify Removed
Vueify support has been removed entirely, in order to limit Elixir's dependency list a bit. Don't worry; it's easy to return.
First, install the Laravel Elixir Vueify extension:
npm install laravel-elixir-vueify
Next, require it in your main Gulpfile, at the top, like this:
var elixir = require('laravel-elixir');
require('laravel-elixir-vueify');
elixir(function(mix) {
mix.browserify('main.js');
});
And that's it! Call mix.browserify()
like you've always done.