convert image paths to base64 strings
npm install @yapplabs/ember-cli-base64-cssAn ember-cli addon for converting asset urls to base64 strings
sh
ember install @yapplabs/ember-cli-base64-css
`$3
Example with default options in your Ember CLI ember-cli-build.js.`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.