Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a specific and quiet browser-sync

Many CLI apps are noisy, including browser-sync, and that's fine because it lets people know what's going on.

This script runs browser-sync in stealth and only on the localhost IP.

Open http://127.0.0.1:9924

#!/bin/zsh
browser-sync start -w --ss dist --port 9924 --host 127.0.0.1 --logLevel error --no-notify --no-open --no-ui --no-online --no-ghost-mode
{
"scripts": {
"dev-browsersync": "browser-sync -w start --ss dist --port 9924 --host 127.0.0.1 --logLevel error --no-notify --no-open --no-ui --no-online --no-ghost-mode || true"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.