1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:02:08 +02:00
tldr/pages/common/browser-sync.md
Vitor Henrique af35564618
pages*: do not use config abbreviation (#12118)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-25 10:59:16 +05:30

20 lines
564 B
Markdown

# 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 configuration file:
`browser-sync start --config {{config_file}}`