Skip to content

Is there a way to unapply a plugin? #2

@richardscarrott

Description

@richardscarrott

Webpack applies many plugins by default e.g.

compiler.apply(
    new JsonpTemplatePlugin(options.output),
    new FunctionModulePlugin(options.output),
    new NodeSourcePlugin(options.node),
    new LoaderTargetPlugin("web")
);

I'd like to, for example, use a different JsonpTemplatePlugin which handles error callbacks however I'm unable to remove the current one meaning I have to monkey patch the JsonpTemplatePlugin class... Is there a better way to achieve this?

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