Gulp error: watch task has to be a function

后端 未结 5 1091
花落未央
花落未央 2020-12-07 08:33

Here is my gulpfile:

// Modules & Plugins
var gulp = require(\'gulp\');
var concat = require(\'gulp-concat\');
var myth = require(\'gulp-myth\');
var ugl         


        
5条回答
  •  难免孤独
    2020-12-07 09:00

    GULP-V4.0

    It is a bit late to answer this right now but still. I was stuck in this problem as well and this is how I got it working.

    In detail analysis what I was doing wrong

    1. I forgot to call the reload function when the watch noticed some changes in my html files.
    2. Since fireUp and KeepWatching are blocking. They need to be started in parallel rather than serially. So I used the parallel function in the variable run.

提交回复
热议问题