Start browser-sync In The Current Directory
January 2024
function bs () {
# browser-sync . --port 3939 --watch --directory --no-notify --no-inject-changes
browser-sync . --port 3993 --watch --index "index.html" --no-notify --no-inject-changes
}Notes
-
The version with
--directorylists directories out even if there's anindex.htmlfile in the dir - I flip back and forth depending on what I'm doing
end of line