Skip to content

A Webpack loader for .webmanifest files

License

Notifications You must be signed in to change notification settings

iconduit/webmanifest-loader

Repository files navigation

Web app manifest loader

A Webpack loader for .webmanifest files

Current NPM version Build status Test coverage

This loader processes web app manifest files, adding any images to the bundle and resolving their URLs in the output manifest file.

It supports:

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",
      },
    ],
  },
};