ember-cli-gzip

1.2.0 • Public • Published

ember-cli-gzip

An ember-cli add-on to gzip assets.

Note: If you use the ember-deploy addon, just use their gzip plugin: https://www.npmjs.com/package/ember-cli-deploy-gzip
Note: ember-cli already gzips your assets on its development server.

This is more of a low-level addon for custom deployments.

Install

npm install --save-dev ember-cli-gzip

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

Options

For more control, you can define options in your app's Brocfile.js:

var 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)

References

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-gzip

Weekly Downloads

2,368

Version

1.2.0

License

MIT

Unpacked Size

2.35 kB

Total Files

3

Last publish

Collaborators

  • gdub