Published 2 years ago by bart
can you give me a quick hint how I can use vue, added by the npm install command? Do I need elixir for this? Or do I only nee to require vue from inside my app?
I just installed Vue in a new project.
I created a new file
resources/assets/js/app.js and in there I require Vue like so:
var Vue = require('vue');
gulpfile.js I added this mix:
Browserify will then search the Vue.js source on it's own and inject it in the final file.
Jeffrey also made a video for that: https://laracasts.com/series/learning-vuejs/episodes/9