@iconduit/webmanifest-loader
v0.3.0
Published
A Webpack loader for .webmanifest files
Downloads
213
Maintainers
Readme
Web app manifest loader
A Webpack loader for .webmanifest
files
This loader processes web app manifest files, adding any images to the bundle and resolving their URLs in the output manifest file.
It supports:
- Resolving icons
- Resolving shortcut icons
- Resolving screenshots
Usage
// webpack.config.js
export default {
// ...
module: {
rules: [
{
test: /\.(png|jpg|gif)$/i,
type: "asset/resource",
},
{
test: /(\.webmanifest|\/manifest\.json)$/i,
type: "asset/resource",
use: "@iconduit/webmanifest-loader",
},
],
},
};