I'm working on localhost and I'm trying to use browsersync. I want to point it to my root directory, which is http://localhost:8080/site/
What should I write here:
server: { baseDir: "" } I tried ./ but didn't work.
It keeps redirecting me to http://localhost:3000/ and getting this message: Cannot GET /
Here is my whole code:
browserSync.init({ server: { baseDir: "" } });
portproperty to8080orproxyproperty tolocalhost:8080inside the object passed to thebrowserSync.initfunction?8080and browsersync looks at port3000for the projects, unless otherwise specified. You might want to keep that option and set theportvalue to8081to prevent conflicts.portorproxyproperties as I mentioned?