pmw

pwa-manifest-webpack-plugin

generating manifest.json for pwa app

Showing:

Popularity

Downloads/wk

12

GitHub Stars

7

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

2

Size (min+gzip)

10.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

pwa-manifest-webpack-plugin

generating manifest.json for pwa app

use

npm i pwa-manifest-webpack-plugin --save-dev
const PwaManifestWebpackPlugin = require('pwa-manifest-webpack-plugin');

plugins: [
  new PwaManifestWebpackPlugin({
    name: 'Todos',
    description: 'a todo demo of pwa',
    icon: {
      src: path.resolve('src/images/icon.jpg'),
      sizes: [36, 48]
    }
  })
]

output manifest.json:

{
  "orientation": "portrait",
  "display": "standalone",
  "icons": [
    {
      "src": "icon_48x48.jpeg",
      "sizes": "48x48",
      "type": "image/jpeg"
    },
    {
      "src": "icon_36x36.jpeg",
      "sizes": "36x36",
      "type": "image/jpeg"
    }
  ],
  "name": "Todos",
  "description": "a todo demo of pwa"
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100