Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # You need to globally install broswser-sync `npm i -g browser-sync` and might need to export the node path
- # Then you can run `$ bbs` to serve the current directory or `bbs ~/workspace/web/my-project` to specify the base directory
- SERVER_DIR=${1:-$PWD}
- echo $SERVER_DIR
- browser-sync start -s $SERVER_DIR -f $SERVER_DIR --port 3333 --ui-port 3334 --directory --cors
Add Comment
Please, Sign In to add comment