broccoli-gzip

0.3.0 • Public • Published

Broccoli Gzip Plugin

Build Status

Installation

yarn add broccoli-gzip

Example

const Gzip = require('broccoli-gzip');
 
let tree = new Gzip('app', {
  extensions: ['js', 'css']
});

Configuration

new Gzip(inputTree, options)


options.extensions {Array} (Required)

The file extensions that should be compressed.


options.keepUncompressed {Boolean} (Optional, default false)

Whether the uncompressed versions of the files should be kept in the resulting tree.


options.appendSuffix {Boolean} (Optional, default true)

Whether to append the .gz suffix.

Testing

yarn test

License

This project is distributed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i broccoli-gzip

Weekly Downloads

4,339

Version

0.3.0

License

MIT

Last publish

Collaborators

  • dfreeman
  • katrynmc
  • salsify-jenkins-ci