Note: Jeffrey Way is the original author of this package (found here). All credit goes to him. I just forked it and bumped the vueify version to work with Vue 2.0 (currently in beta).
npm install laravel-elixir-vueify-2.0
Within your main Gulpfile
, add:
var elixir = require('laravel-elixir');
require('laravel-elixir-vueify-2.0');
elixir(function(mix) {
mix.browserify('main.js');
});
Notice above, where we require laravel-elixir-vueify
. That's all you need. Behind the scenes, all of the necessary dependencies have been installed, and Vueify has been inserted into Laravel Elixir's Browserify transformers list.
You're done. :)
Having trouble? Here's a starter example site that uses Laravel Elixir, Browserify, and Vueify.