1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/common/browser-sync.md
4G3NT 062b88d05a
pages/*: prefer brand name and add backticks around commands (#10422)
* pages/*: prefer brand name and add backticks around commands

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-06-27 23:57:35 +02:00

20 lines
557 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 config file:
`browser-sync start --config {{config_file}}`