Using browser sync cli has never been easier

11/09/2015 By emehany

Run the below command in any directory where files need to be served in a project with a simple directory like a js/** and css/** folders

 

browser-sync start --server --files "js/*.js, css/*.css"

//output

[BS] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.1.109:3000
--------------------------------------
UI: http://localhost:3002
UI External: http://192.168.1.109:3002

 

// if not installed globally already, then

npm install -g browser-sync
 

 

 

Leave a comment

Login to Comment

Loading