简体   繁体   English

从gulp任务中调用.mix

[英]Call .mix from inside of gulp task

I'd like to gather some info about Laravel Elixir. 我想收集一些关于Laravel Elixir的信息。 I created a custom set of tasks in gulp like 我在gulp中创建了一组自定义任务

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. 但是在完成所有子任务后,我想使用Elixir来生成一些生成的文件。 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(看起来像这样):

elixir(function(mix){});

The extend method of Elixir works only for piping. Elixir的extend方法仅适用于管道。 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. 我只是在一个gulp任务中包含了elixir(function(mix){}) I know it's not pretty but it did the job for me 我知道它不漂亮,但它为我完成了这项工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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