1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:22:08 +02:00
tldr/pages/common/browser-sync.md
2017-04-06 07:41:22 -04:00

19 lines
497 B
Markdown

# browser-sync
> Starts local web server that updates browser on file changes.
- 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 some directory:
`browser-sync start --server --files '{{path/to/directory/*.css}}'`
- Create configuration file:
`browser-sync init`
- Start browser-sync from config file:
`browser-sync start --config {{config_file}}`