Call .mix from inside a gulp task

I would like to collect information about Laravel Elixir. I created a special set of tasks in gulp, for example

gulp.task('vendor', function(){
    generateCoreScripts();
    copyFonts();
    generateCss();
    generateAdminResources();
});

But after completing all the subtasks, I would like to use Elixir for the version of some files that were generated. But the problem is that I do not really understand how to access / start the Elixir outside the main task (similar):

elixir(function(mix){});

The extendElixir method works only for pipelines. Any ideas?

+4
source share
1 answer

I am currently facing the same problem, however I found something that works now.

i just included elixir(function(mix){})gulp inside the task. I know this is not very, but it helped me.

+1
source

All Articles