Skip to content

[Feature request]: Support multiple strategy groups for assets #6

@fi3ework

Description

@fi3ework

Allowing multiple groups with retry strategies for different matched assets (just like webpack loaders rules). Using multiple plugin instances may not work due to the implementation and will bloat the runtime size.

Be like:

defineConfig({
  plugins: [
    pluginAssetsRetry([
      {
        domain: ["cdn1.com", "cdn2.com""],
		max: 3
      },
      {
        domain: ["cdn3.com"],
        max: 4,
      }
    ])
  ]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions