ember-cli-zopfli

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i ember-cli-zopfli

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

3.71 kB

Total Files

4

Last publish

Collaborators

  • joan.karadimov