mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat: add Dotbot
This commit is contained in:
11
functions/server.sh
Executable file
11
functions/server.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
# Server
|
||||
|
||||
server() {
|
||||
if command -v browser-sync >/dev/null 2>&1; then
|
||||
echo "Starting Browser-Sync server..."
|
||||
browser-sync start --server --files "${1:-**}" "${@:2}"
|
||||
else
|
||||
echo "Error: browser-sync is not installed or not in the PATH."
|
||||
echo "Please install it using npm: npm install -g browser-sync"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user