Favicons generator using the RealFaviconGenerator API and simplified configuration
npm install app-ico
appico.config.js (see example and configuration readme).js
let config = require('./appico.config');
let createIcons = require('app-ico');createIcons(config).then(result => {
// "result.response" contains the response data from the RealFaviconGenerator API
// if config.output[files|html|response] is set, files will be written in the directory
});
`$3
- app-ico Will look for appico.config.js in the root directory by default.
- app-ico -c config/favicon.config will look for config/appico.config.js
- in package.json e. g.:
``json
{
"scripts": {
"favicons": "app-ico -c config/favicon.config"
}
}
```