Published 1 year ago by on3nx
i'm still learning how gulp, npm, elixir and laravel - how are they related.
I know that if you want to load asset into laravel, you can just copy paste the file into the folder and load it directly from your blade template.
but i'm wondering , if i have jquery, or bootstrap or any standard/common (.js or .css) assets, how to load it 'properly' in laravel? - rather than i download and copy-paste the file and load it manually in blade template.
when i said 'properly' i'm referring to using npm and gulp, load it from internet repository, compile it and minify it then put it nicely in blade template with cache-buster.
your link: https://laravel-news.com/2015/10/setup-bootstrap-sass-with-laravel-elixir/ helps a lot.
basically (correct me if i'm wrong),
if you have multiple files, you can configure it using elixir which explained in: https://laravel.com/docs/5.3/elixir