ember-cli-zopfli

ember-cli add-on that uses Zopfli to generate gzipped assets

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ember-cli-zopfli
1.0.15 years ago6 years agoMinified + gzip package size for ember-cli-zopfli in KB

Readme

ember-cli-zopfli
An ember-cli add-on that uses Zopfli to generate gzipped assets. It is a drop-in replacement for ember-cli-gzip.
Zopfli is a compression library from Google that generates files that are 3–8% smaller, yet compatible with zlib formats.

Installation

ember install ember-cli-zopfli

By simply including this add on, js and css assets will automatically be gzipped on production builds.

Configuration

For more control, you can define options in your app's ember-cli-build.js:
let app = new EmberApp({
  gzip: {
    // options
  }
});

  • enabled : (Default true in production environment)
  • extensions : Array of file extentions that should be compressed. (Default ['js', 'css'])
  • keepUncompressed: Whether the uncompressed versions of the files should be kept. (Default false)
  • appendSuffix: Whether to append the .gz suffix. (Default true)

For even more control, see the options for @floatboth/broccoli-zopfli:

Credit