Example
```
Then add the plugin to your webpack config. For example:
#### webpack.config.js
```js
const WebManifestPlugin = require("webpack-webmanifest-plugin");
module.exports = {
module: {
rules: [
{
test: /\.(png|svg|webp|jpg|jpeg)$/i,
type: "asset/resource",
},
{
test: /\.webmanifest$/i,
use: [
{
loader: WebManifestPlugin.loader,
},
],
},
],
},
plugins: [new WebManifestPlugin()],
};
```
With the default options, the example above will create a `manifest.webmanifest` file in the output directory for the build.
```json
{
"name": "HackerWeb",
"icons": [
{
"src": "[hash].png",
"sizes": "48x48",
"type": "image/png"
},
],
}
```
### Plugin Options
### `fileName`
Type: `String`
Default: `manifest.webmanifest`
This option determines the name of output file. By default the plugin will emit `manifest.webmanifest`