gobble-gzip
Compress files with GZIP.
Installation
Make sure to have gobble installed. Then,
npm i -D gobble-gzip
Usage
gobblefile.js
var gobble = ; var js = ; moduleexports = ;
This will make gobble serve all files in the js/
directory, along with gzip-compressed versions of the .js
files with a .js.gz
extension.
To process file types other than JavaScript, such as Markdown, supply the accept
and ext
options like so.
markdown
You can pass additional options to zlib using the zlib
option.
License
MIT. Copyright 2015 Oskar Segersvärd