Hmm - using the latest version of the Elixir extension ("laravel-elixir": "^0.4.10"), I just tried out this exact code, and it worked.
Can you confirm that your version of Elixir matches that?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys:
I've started using Laravel 5.0 for a quick project, and I've run into this issue with Laravel Elixir. I'm not sure if I'm doing something wrong here, so any help would be much appreciated.
My Gulpfile.js looks like this:
elixir(function(mix) {
mix.less(["backend.less", "frontend.less"])
.scripts(
[
'jquery/dist/jquery.min.js',
'bootstrap/dist/js/bootstrap.min.js',
'jasny-bootstrap/dist/js/jasny-bootstrap.min.js'
],
'bower_components',
'public/js/dependencies.min.js'
)
.scripts(
[
'js/main.js',
'js/etc.js',
],
'resources/assets',
'public/js/app.min.js'
)
.routes()
.events()
.phpUnit();
});
The issue is that only the last scripts call is working. The intended result of this setup is to have an app.min.js file and a dependencies.min.js file created. ONLY the app.min.js is being created.
Please or to participate in this conversation.