webpack-pwa-manifest
webpack-pwa-manifest copied to clipboard
Added support for non-square icon sizes
Adds support for non-square icon sizes (WxH) and fills in background with the image's top/left pixel. Ex.
{
ios: 'startup',
src: path.resolve('./tests/icon.png'),
destination: 'icons',
sizes: ['640x1136', '828x1792']
}
Also fixes broken tests:
-
runTests
was failing because it attempts to "read" the foldericons
. Added a directory check to skip. - tests were failing due to incorrect webpack hash in my local machine, so I updated some of the expected output files (seems like a known webpack issue) [https://github.com/webpack/webpack/issues/7179]
- fixed test-87, which was failing silently because there was no support for
typeof size === 'string'
on icons/index.js