mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
Fix the compile and watch step to not return unless the compilation actually finished
This commit is contained in:
parent
5a966ec56d
commit
001f0d7cdc
@ -10,7 +10,7 @@ var options = {
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
gulp.task('compile', function() {
|
||||
gulp
|
||||
return gulp
|
||||
.src('src/**/*.js')
|
||||
.pipe(plumber({
|
||||
errorHandler: function(err) {
|
||||
@ -26,7 +26,7 @@ gulp.task('compile', function() {
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch('src/**/*.js', ['compile']);
|
||||
return gulp.watch('src/**/*.js', ['compile']);
|
||||
});
|
||||
|
||||
gulp.task('default', ['compile']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user