mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 08:48:43 +00:00
Update cheatsheets
This commit is contained in:
25
browser-sync
Normal file
25
browser-sync
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# browser-sync
|
||||
|
||||
> A 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}}`
|
||||
Reference in New Issue
Block a user