Guest User

Untitled

a guest
Jan 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # You need to globally install broswser-sync `npm i -g browser-sync` and might need to export the node path
  4. # Then you can run `$ bbs` to serve the current directory or `bbs ~/workspace/web/my-project` to specify the base directory
  5.  
  6. SERVER_DIR=${1:-$PWD}
  7.  
  8. echo $SERVER_DIR
  9.  
  10. browser-sync start -s $SERVER_DIR -f $SERVER_DIR --port 3333 --ui-port 3334 --directory --cors
Add Comment
Please, Sign In to add comment