Browser sync isn't serving the root files using gulp.
this is my code:
gulp.task("liveReload", [
"copy", "watch"
], function () {
browserSync.init(null,{
server: {
baseDir: ["public"]
},
files: ["*"],
port: 8080
});
gulp.watch("src/index.html").on("change",browserSync.reload);
gulp.watch("src/**/*.html").on("change",browserSync.reload);
gulp.watch(paths.srcJS, browserSync.reload);
});
I tried to play with the browser sync options and nothings works. it's only serving the subFolder files.
Is pointing the index.html but isn't serving it. which mean no liveReload occurred while changing to index.html