rgonzales's avatar

Elixir 5.1 Endless Loop During Watch Process

Hello everyone,

Please see my code below. When I add that tasks that concatenates all script files, it produces an endless loop during watch command. But I'm not really sure if I'm doing the right way to get my desired output. I believe my code below is self-explanatory of what I want. I hope somebody could help me as I've been struggling with this for days.

var elixir = require('laravel-elixir');

elixir(function(mix) {
    mix.scripts([
        'js/vendor/vendor1.js',
        'js/vendor/vendor2.js'
    ], './js/vendors.js') // Moves vendor files to js folder
       .scripts([
        'js/scripts/script1.js',
        'js/scripts/script2.js',
        'js/scripts/custom-script.js'
    ], './js/scripts.js') // Moves script files to js folder
       .scripts([
        'js/vendors.js',
        'js/scripts.js'
    ], './js/all.js'); // Concatenate all script files
}
0 likes
0 replies

Please or to participate in this conversation.