2015-04-04 02:11:51 +00:00
|
|
|
---
|
|
|
|
title: Browsersync
|
2015-11-24 05:02:17 +00:00
|
|
|
category: JavaScript libraries
|
2015-04-04 02:11:51 +00:00
|
|
|
---
|
|
|
|
|
2023-03-14 01:52:21 +00:00
|
|
|
### About
|
|
|
|
{: .-intro}
|
|
|
|
|
|
|
|
`npm i -g browser-sync`
|
|
|
|
|
|
|
|
* [browsersync.io](https://browsersync.io)
|
2015-04-04 02:11:51 +00:00
|
|
|
|
2015-04-16 18:55:48 +00:00
|
|
|
### Start a server
|
2015-04-04 02:11:51 +00:00
|
|
|
|
2015-04-16 18:55:48 +00:00
|
|
|
```sh
|
|
|
|
browser-sync start --server <path> --files='**/*.html, **/*.css'
|
2015-04-04 02:11:51 +00:00
|
|
|
```
|
2015-04-16 18:55:48 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```sh
|
2015-04-04 02:11:51 +00:00
|
|
|
--port=N
|
|
|
|
--proxy="http://127.0.0.1:3000"
|
|
|
|
```
|