I have 2 files that I wanted to combine using Laravel Elixir's Scripts function.
Files are :
node_modules/jquery/dist/jquery.js
resources/assets/js/app.js
My elixir scripts for combining both is
elixir(function(mix){
mix.sass('app.scss')
.scripts('jquery/dist/jquery.js','public/js/app.js','node_modules')
.scripts(['app.js', 'public/js/app.js'] , 'public/js/app.js')
.browserify('app.js');
//obvious fail due to 'public/js/app.js' will read from resources/assets/js/public/js/app.js
});
What I wanted is to have jquery.js
coming from /node_modules
to combine with app.js
within the path of /resources/assets/js/
Any method I am able to read it from 2 different source path to combine it into 1 script file?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nEDwqf
via IFTTT
Aucun commentaire:
Enregistrer un commentaire