pwa-manifest-icons
Generate icon images by Web Manifest icons property. size and location will be referenced as writing icon images
Install
npm install --save @pwa/manifest-icons
Usase
const manifestIcons = require('@pwa/manifest-icons');
const manifest = {
...defaultManifest
};
(() => {
const manifest.icons = await manifestIcons({
src: path.resolve(process.cwd(). './assets/icon.png'),
cache: true,
output: './static/manifest/icons',
publicPath: '/static/manifest/icons/',
sizes: [192, 512]
});
})();
const manifest.icons = manifestIcons.sync({
...
});
License
MIT @ Jimmy Moon