makestatic-emit-gzip
v1.0.30
Published
Emits static gzip files
Downloads
3
Readme
Emit Gzip
Compress output assets
Creates static .gz
files for each output file.
Install
yarn add makestatic-emit-gzip
API
EmitGzip
Plugin that generates gzip files for each output file.
.sources
EmitGzip.prototype.sources(file, context, conf)
For each file compress the file content
using the zlib
module and
add a new file to the pipeline with a .gz
file extension.
Before this plugin is executed files must have been assigned a content
buffer.
Files marked as transient
are ignored.
If the gzip
context option is not set this function call is a noop.
file
Object the file being processed.context
Object the processing context.conf
Object the plugin configuration.
License
MIT
Created by mkdoc on March 12, 2017