mirror of
https://github.com/rstacruz/cheatsheets.git
synced 2026-04-27 03:00:45 -04:00
Browsersync formatting
This commit is contained in:
@@ -2,15 +2,24 @@
|
||||
title: Browsersync
|
||||
---
|
||||
|
||||
[`npm install -g browser-sync`](http://browsersync.io)
|
||||
|
||||
```
|
||||
npm i -g browser-sync
|
||||
```
|
||||
{:.terminal}
|
||||
|
||||
### Start a server
|
||||
|
||||
```sh
|
||||
browser-sync start --server <path> --files='**/*.html, **/*.css'
|
||||
```
|
||||
|
||||
Options
|
||||
### Options
|
||||
|
||||
```
|
||||
```sh
|
||||
--port=N
|
||||
--proxy="http://127.0.0.1:3000"
|
||||
```
|
||||
|
||||
### Reference
|
||||
|
||||
* [browsersync.io](http://browsersync.io)
|
||||
|
||||
Reference in New Issue
Block a user