@yapplabs/ember-cli-base64-css
v0.0.8
Published
convert image paths to base64 strings
Downloads
4
Readme
ember-cli-base64-css
An ember-cli addon for converting asset urls to base64 strings
Install
ember install @yapplabs/ember-cli-base64-css
Usage
Example with default options in your Ember CLI ember-cli-build.js
.
var app = new EmberApp({
base64CSS: {
enabled: true
, fontPath: 'public'
, imagePath: 'public'
, maxFileSize: 4096 // larger files will be left untouched
, extensions: ['css']
, fileTypes: ['png', 'jpg', 'jpeg', 'gif', 'svg']
}
});
If you are fine with the default options, there is no need to configure anything in ember-cli-build.js
.
For info on these options, see broccoli-base64-css.