简体   繁体   中英

Call .mix from inside of gulp task

I'd like to gather some info about Laravel Elixir. I created a custom set of tasks in gulp like

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

But after all subtasks finish I'd like to use Elixir to version some of the files that were generated. But the problem is I don't have much idea how to access/fire Elixir outside of the main task(the one looking like) :

elixir(function(mix){});

The extend method of Elixir works only for piping. Any ideas ?

I m facing the same problem currently , i did however found something that works for now.

i simply included elixir(function(mix){}) inside of a gulp task. I know it's not pretty but it did the job for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM