gpoitch / Ember Cli Gzip
ember-cli add-on to gzip assets
Stars: ✭ 17
Programming Languages
javascript
184084 projects - #8 most used programming language
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].