mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 00:55:41 +02:00
Create browser-sync.md (#1287)
This commit is contained in:
parent
7fd90b1d58
commit
ece6982be9
1 changed files with 19 additions and 0 deletions
19
pages/common/browser-sync.md
Normal file
19
pages/common/browser-sync.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue