Notorious Public Menace

    makestatic-emit-gzip

    1.0.30 • Public • Published

    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

    Install

    npm i makestatic-emit-gzip

    DownloadsWeekly Downloads

    5

    Version

    1.0.30

    License

    MIT

    Last publish

    Collaborators

    • muji
    • tmpfs