gzip-server
v1.0.1
Published
Simple static asset server with gzip compression, so you can figure out what slows down production page load time
Downloads
8
Readme
gzip-server
Simple static asset server with gzip compression, so you can figure out what slows down production page load time.
(For example, JSON will be very large without compression, but shrinking it is not worth the trouble since it compresses so well.)
Don't want the dependencies? npm i gzip-server-prebuilt
. (link)
npx
npx gzip-server
global install
npm i -g gzip-server
gzip-server
# options:
DIR=./wherever/public PORT=3000 LEVEL=9 gzip-server
dev dependency
npm i --save-dev gzip-server
package.json:
{
"scripts": {
"serve": "gzip-server"
}
}