question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to unapply a plugin?

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arusakovcommented, Nov 5, 2015

Hi, @sokra

There is not a way to plugout something after plugin (example for webpack):

compiler.parser.plugin('call fn', function () {
// ...
});

What do you think about adding plugout method in public API?

0reactions
richardscarrottcommented, Feb 11, 2015

Ah yes, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Uninstall a Plugin the Right Way - GreenGeeks
On this tab, only inactive plugins will be visible. Locate the plugin you want to delete and click on the Delete option.
Read more >
How to Uninstall a WordPress Plugin (the Proper Way) - Kinsta
Navigate to “Installed Plugins” in your dashboard and click on “Deactivate” next to the plugin. In this example, we are uninstalling the ...
Read more >
How to remove your plugin completely - WordPress.org
1. Click “Plugins” in the vertical WordPress admin menu. ... 3. Click the “Deactivate” link which is under the plugin name. 4. Click...
Read more >
How to uninstall a WordPress plugin (completely) - Zapier
When you delete a plugin, some developers intentionally retain settings in case you reinstall it, but others simply don't tidy up. Either way, ......
Read more >
How to Properly Uninstall a WordPress Plugin (Beginner's ...
On the other hand, inactive plugins have a link to Activate or Delete them from your site. To uninstall a plugin, go ahead...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found