arthurbergmz / webpack-pwa-manifest

Progressive Web App Manifest Generator for Webpack, with auto icon resizing and fingerprinting support.
MIT License
514 stars 94 forks source link

Support for setting the icon size option to 'any' ? #127

Open Momijiichigo opened 4 years ago

Momijiichigo commented 4 years ago

I tried this configuration but it seems setting icon size to a value 'any' is not supported. what I tried:

new WebpackPwaManifest({
      //~~~~
      icons: [
        {
          src: path.resolve("./src/imgs/logo.svg"),
          sizes: 'any',
          type: "image/svg+xml"
        }
      ]
    }),

expected output manifest:

{
    //~~~~~~~~~
    "icons": [
        {
            "src": "./path/to/icon.svg",
            "sizes": "any",
            "type": "image/svg+xml"
        }
    ]
}

Can I have this option available because I don't like this extension to generate multiple SVG files?