cheatsheets/browser-sync.md

26 lines
294 B
Markdown

---
title: Browsersync
---
```
npm i -g browser-sync
```
{:.terminal}
### Start a server
```sh
browser-sync start --server <path> --files='**/*.html, **/*.css'
```
### Options
```sh
--port=N
--proxy="http://127.0.0.1:3000"
```
### Reference
* [browsersync.io](http://browsersync.io)