browser-sync
Starts local web server that updates browser on file changes. More information: https://browsersync.io/docs/command-line.
-
Start a server from a specific directory:
browser-sync start --server {{path/to/directory}} --files {{path/to/directory}}
-
Start a server from local directory, watching all CSS files in a directory:
browser-sync start --server --files '{{path/to/directory/*.css}}'
-
Create configuration file:
browser-sync init
-
Start Browsersync from config file:
browser-sync start --config {{config_file}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.