From ece6982be9a3603ff6c625fd87cbfc5ef829dcb5 Mon Sep 17 00:00:00 2001 From: Ismail Arafa Date: Thu, 6 Apr 2017 07:41:22 -0400 Subject: [PATCH] Create browser-sync.md (#1287) --- pages/common/browser-sync.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/browser-sync.md diff --git a/pages/common/browser-sync.md b/pages/common/browser-sync.md new file mode 100644 index 0000000000..a50fce7852 --- /dev/null +++ b/pages/common/browser-sync.md @@ -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}}`