[Vuejs]-How can I use Elixir + Vueify?

4👍

  1. Install sudo npm install laravel-elixir-browserify vue vueify --save
  2. In your gulpfile.js add the following:

    var elixir = require('laravel-elixir');
    
    var vueify = require('laravel-elixir-browserify').init("vueify");
    
    elixir(function(mix) {
        // resources/assets/js/main.js
        mix.vueify('main.js', {insertGlobals: true, transform: "vueify", output: "public/js"});
    });
    
  3. Be Happy =D

Laravel Elixir Browserify Extension Doc
Click Here

Leave a comment