2017-04-06 12:41:22 +01:00
|
|
|
# browser-sync
|
|
|
|
|
|
|
|
> Starts local web server that updates browser on file changes.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://browsersync.io/docs/command-line>.
|
2017-04-06 12:41:22 +01:00
|
|
|
|
|
|
|
- Start a server from a specific directory:
|
|
|
|
|
|
|
|
`browser-sync start --server {{path/to/directory}} --files {{path/to/directory}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Start a server from local directory, watching all CSS files in a directory:
|
2017-04-06 12:41:22 +01:00
|
|
|
|
|
|
|
`browser-sync start --server --files '{{path/to/directory/*.css}}'`
|
|
|
|
|
|
|
|
- Create configuration file:
|
|
|
|
|
|
|
|
`browser-sync init`
|
|
|
|
|
2024-01-25 05:29:16 +00:00
|
|
|
- Start Browsersync from configuration file:
|
2017-04-06 12:41:22 +01:00
|
|
|
|
|
|
|
`browser-sync start --config {{config_file}}`
|