2016-07-07 14 views
0

以下はガルプのタスクコードです。gulp + browserify + reactifyを使用すると、ReactifyErrorが発生したときに終了できません。

gulp.task('tmp-script', function() { 
glob('./app/pages/*.js', {}, function(err, files) { 
    files.forEach(function(file) { 
     browserify(file, { 
      transform: [reactify] 
     }) 
     .bundle() 
     .on('error', function(err){ 
      console.log(err.message); 
      this.emit('end'); 
     }) 
     .pipe(source(file.replace('./app/pages/', ''))) 
     .pipe(gulp.dest('.tmp/js')); 
    }); 
}); 

});

しかし、これは初めての動作です。もう一度エラーが発生すると、次のように終了します。 enter image description here

どうすればよいですか?

答えて

0

私のせいで、それは悪い質問です。私は、(エラー)機能をgulp(watch)タスクに追加しませんでした...

関連する問題