browser-sync

browser-sync

TLDR

Start a server from a specific directory

$ browser-sync start --server [path/to/directory] --files [path/to/directory]
copy


Start a server from local directory, watching all CSS files in a directory
$ browser-sync start --server --files '[path/to/directory/*.css]'
copy


Create configuration file
$ browser-sync init
copy


Start browser-sync from config file
$ browser-sync start --config [config_file]
copy

Copied to clipboard