gulp-data icon indicating copy to clipboard operation
gulp-data copied to clipboard

auto-reload browser when changing data.json

Open yurifyodorov opened this issue 6 years ago • 0 comments

I've looked at similar problems here and here, but still couldn't solve the problem.

Help please to create a task for Gulp. Need to when changing 'data.json ' worked auto-reload. (using browserSync)

This is my gulpfile

mygulp

I tried adding this line to my 'watch' task:

gulp.watch('src/data.json', gulp.series('nunjucks'));

But this did not solve the problem. To see the changes, you need to shut down 'Gulp' and start again.

yurifyodorov avatar Jan 10 '19 17:01 yurifyodorov