Ember addon that download, extract and copy Icomoon files from
Project.json
file. Addon is basically wrapper for icomoon-build npm package.
npm install ember-cli-icomoon --save-dev
After adding addon to your project go to Icomoon web app and download
your Project.json
file.
Add configuration to ember-cli-build.js
var app = new EmberAddon(defaults, {
// Add options here
icomoon: {
projectFile: 'Project.json',
styleOutputFile: 'app/styles/vendor/icomoon/style.css',
fontsOutputFolder: 'public/fonts'
}
});
projectFile
- path to project file from IcomoonstyleOutputFile
- path where style file should be placedfontsOutputFolder
- folder where font files should be placed
After setting configuration you are done. Icomoon files will be pulled each time you start project build. Addon will check if project file has dirty git status to ensure files are generated only when necessary.