Skip to content

Add support for contextRelativeKeys #8

Description

@bpinto
  • Manifest Plugin Version: v5.0.3

Feature Use Case

There are two popular manifest plugins for webpack, both are listed on rspack's plugin compatibility list. While this plugin is an alternative version to webpack-manifest-plugin there is no alternative version to webpack-assets-manifest.

I think it would be good to consolidate both plugins' capabilities into one while adding support for more webpack users to migrate to rspack.

Use cases for this feature can be seen on the related issue: webdeveric/webpack-assets-manifest#44

Feature Proposal

Add support for contextRelativeKeys. This allows files with the same name to be included in the manifest file since their path will be part of the key.

For instance:

{
  "main.js": "main-9c68d5e8de1b810a80e4.js",
  "main.css": "main-9c68d5e8de1b810a80e4.css",
  "images/logo.svg": "images/logo-b111da4f34cefce092b965ebc1078ee3.svg"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions