-
Notifications
You must be signed in to change notification settings - Fork 35
Description
When we use this plugin while running a webpack watch, with many output/entry files, all of these files are registering changes if any file has a change. Since most of the file source is cached for rebuilding the output files, output file construction does not seem to take long, but with sourcemaps enabled, all sourcemaps are also rebuilding, taking a lot of time.
This amounts to a watcher change taking close to the same amount of time as a whole webpack build for us.
Do you think there would be any way to add watcher support for this plugin such that it does not trigger changes to everything?
I've been poking around to see what's possible using the source of this project, but it seems if I check the chunk hash for changes and only run your logic on these, all the wrappers for other output files are removed.
Perhaps there is a different event hook that could be tapped into?