OSDN Git Service

Regular updates
[twpd/master.git] / browser-sync.md
1 ---
2 title: Browsersync
3 category: JavaScript libraries
4 ---
5
6 ```
7 npm i -g browser-sync
8 ```
9 {:.terminal}
10
11 ### Start a server
12
13 ```sh
14 browser-sync start --server <path> --files='**/*.html, **/*.css'
15 ```
16
17 ### Options
18
19 ```sh
20   --port=N
21   --proxy="http://127.0.0.1:3000"
22 ```
23
24 ### Reference
25
26 * [browsersync.io](http://browsersync.io)