A minimalistic webpack loader that generates Web App Manifest files (webmanifest) and processes icon URLs with cache busting. It requires webpack 5.1+ and has zero runtime dependencies. Unlike plugins that generate manifests separately, this loader integrates into webpack's module graph, allowing icons to be processed through the asset module pipeline. Version 2.0.2 is the latest stable release, with the package renamed from webpack-webmanifest-plugin in v2.0.1. Release cadence is sporadic, with no updates since late 2021. Key differentiators: zero dependencies, content hash support for icons, and simple configuration.
npm install webpack-webmanifest-loaderVerified import paths — ran on the pinned version, not inferred.
Webpack configuration using the loader to process .webmanifest files and icon assets.
Uninstall old package (npm uninstall webpack-webmanifest-plugin) and install new package (npm install -D webpack-webmanifest-loader). Update webpack config to use loader name.
Ensure webpack version is 5.1 or higher. Upgrade if necessary.
Add type: 'asset/resource' to the .webmanifest rule in webpack config.
Use relative paths from the manifest file to the icon assets, and ensure those assets are handled by a loader (e.g., asset/resource).
Evaluate if the still works for your webpack version. For critical projects, consider alternatives like favicons-webpack-plugin or manual manifest generation.
Add the loader rule as shown in the quickstart: { test: /\.webmanifest$/i, use: 'webpack-webmanifest-loader', type: 'asset/resource' }.Run 'npm install -D webpack-webmanifest-loader' and ensure the loader name is correct in webpack config.
Ensure the icon path is correct relative to the manifest file, and that the image file exists. Also ensure the image rule is configured to handle png files.
No dependency data recorded yet.