--compress added
This commit is contained in:
@ -21,7 +21,7 @@ $ npm install -g local-web-server
|
||||
Usage
|
||||
-----
|
||||
```
|
||||
ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny]
|
||||
ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny] [--compress|-c]
|
||||
```
|
||||
|
||||
From the folder you wish to serve, run:
|
||||
@ -47,6 +47,11 @@ Use a built-in or custom [Connect logger format](http://www.senchalabs.org/conne
|
||||
$ ws --log-format short
|
||||
```
|
||||
|
||||
To add compression, reducing bandwidth, increasing page load time (by 10-15% on my Macbook Air)
|
||||
```sh
|
||||
$ ws --compress
|
||||
```
|
||||
|
||||
Use with Logstalgia
|
||||
-------------------
|
||||
The "default" log-format is compatible with [logstalgia](http://code.google.com/p/logstalgia/).
|
||||
|
Reference in New Issue
Block a user