Run 'watch' before serve- node ionic2

I am working with ionic 2. And I don’t know why when I’m trying to run ‘ionic serve’, it answer with the next messeges:

WARN: ionic.config.js has been deprecated, you can remove it.
WARN: No ‘serve:before’ gulp task found! Your gulpfile contains a ‘watch’ task already! Add:

gulp.task(‘serve:before’, [‘watch’]);
to your gulpfile to have Ionic CLI run ‘watch’ before serve.

WARN: ionic.config.js has been deprecated, you can remove it.

In the gulpfile.js I add that line and it works, but when I change some html file it don’t update. I have to stop serve. And run the command again. PD: I have alredy install all dependencies with npm install Thanks

I found that replacing before with after allows for the watch task work and therefore resolves your issue… not sure if this is the best approach but it works for me.

gulp.task(‘serve:after’, [‘watch’]);