Opening given file with browsersync

0 votes
Hello,

Is it possible to create a gulp task to watch and browser-sync for a given filename.  It seems that the default file opened is index.html.

I try using from a Terminal session,  a prompt asking  for the file to watch then opening the browser with that file. but not succeed.  I need to edit the url and add the file I want to watch like this for example (http://localhost:3000/test.html); test.html has to be inserted manually.

I'm using Emacs to edit file but really don't know how Emacs could pass the file I'm working on to that gulp task and reload the page on change. Thk
Feb 7, 2023 in Web Development by Michel

edited 5 days ago 16 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