makestatic-emit-gzip v1.0.30
Emit Gzip
Compress output assets
Creates static .gz files for each output file.
Install
yarn add makestatic-emit-gzipAPI
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.
fileObject the file being processed.contextObject the processing context.confObject the plugin configuration.
License
MIT
Created by mkdoc on March 12, 2017
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago