Gulp using browsersync with a given filename

0 votes
Hello,

Is it possible to create a gulp task to watch and reload browser-sync on change for a given file.  I try from a Terminal to prompt for a file then start a gulp watch with browser-sync for the given file but seems that is always index.html that is loaded.  I need to edit the url to add the file I want to watch like : http://localhost:3000/test.html (by default is only http://localhost:3000 which open index.html.)

The final goal is to try Emacs to call a gulp task to watch the currently edited file and reload it in the browser on change.

Thk for help.
Feb 7, 2023 in Others by Michel

edited 5 days ago 13 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP