0👍
✅
On running npm mix
, laravel-mix will compile the file you’ve provided to mix.js
function and save it to the second parameter of the function, which is public/js
directory in your project. The .vue()
tells laravel-mix that it is a vue app entry point.
Once its compiled, you need to import the compiled scripts into your html.
<script src="public/js/main.js"/>
Now your Vue app should work fine.
Source:stackexchange.com