mjc / ember-cli-imagemin

Ember CLI addon to minify images with imagemin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember CLI Imagemin Build Status

Ember CLI addon to minify images with imagemin. This is just a thin wrapper around broccoli-imagemin.

Installation

ember install:addon ember-cli-imagemin

Options

Broccoli Imagemin options

Define options to be passed directly to broccoli-imagemin.

var app = new EmberApp({
  imagemin: {
    interlaced: true,
    optimizationLevel: 3,
    progressive: true,
    lossyPNG: false
  }
});

Read more about the options you may pass in on the broccoli-imagemin page.

Enabled

Type: Boolean
Default: app.env === 'production'

Enable minification of images. Defaults to true in production environment, otherwise false.

var app = new EmberApp({
  imagemin: {
    enabled: true
  }
});

Alternatively, you may simply set { imagemin: true } as a shortcut.

For more information on using ember-cli, visit http://www.ember-cli.com/.

About

Ember CLI addon to minify images with imagemin.

License:MIT License


Languages

Language:JavaScript 72.2%Language:HTML 26.9%Language:Handlebars 0.9%