Skip to content

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

License

Notifications You must be signed in to change notification settings

joankaradimov/ember-cli-zopfli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published