I am just getting my feet wet with Laravel and PHP and one thing I don't quite understand is dependencies, particularly jquery (or other javascript), and probably css as well. If I simply want my app to use jquery mobile, where do I put that dependency? In app.js somewhere? In package.json somewhere? Or can I just include it in the head section of my view like you would do in an "old school" traditional web app? I'm not real familiar with node or how all that stuff works.
Thanks so much for you help!
If you have the cdn link to your jQuery Mobile file, you can add it in the main layout blade file.
If not, you can add manually the js file downloaded from their repos, and put it in the public dir, and finally add the file in the main layout blade file.
thanks @danielrubango. I've read the Mix docs and various other google-related search results. Maybe my question is when would I use mix versus just including the cdn link in the layout blade file?
Mix is optional, it has sense when you have to compile assets, have a good frontend environnement for writing js, css, ... code and want to manage it properly.
CDN is the best one, and many time, it's the must. And it's quick.