Skip to content

removeFile plugin API for allowing plugins to participate in removeCombinedΒ #344

@jrburke

Description

@jrburke

Suggested by @peol in requirejs/text#33: allow plugins, like the text plugin, to remove resources that are part of a build.

Maybe add a new build API a plugin can implement to do this. First thought:

removeFile(pluginId, resourceId, remove) where:

  • pluginId: String. Plugin ID
  • resourceId: The normalized resource ID
  • remove: Function. Pass it a string of a file name to remove.

Not sure if this is enough. For instance, a require.toUrl maybe useful?

It should be called when removeCombined is in effect, and it would need docs on the plugins.html page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions