forked from baldore/open-browser-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute callbacks once but don't remove them
Some webpack plugins (at least webpack-dev-middleware) rely on the plugin callback array not being modified. Instead of unhooking the listener when the browser has been opened, simply perform a no-op after the first function call. This avoids having to mutate the callback array while still maintaining the old behaviour. Fixes baldore#9 Fixes baldore#11
- Loading branch information
Paul LeMarquand
committed
Feb 9, 2017
1 parent
22a5ff4
commit c45e8a2
Showing
1 changed file
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters