Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid child compilation listen parent's plugin
As Html-webpack-plugin runs a child compiler, which initiated with part of parent compiler's plugins by webpack. If we listen on `compilation`, handlers in `webpack-split-by-path` will be copy to the child compilation instance, which cases some unwanted extraction. So, we just listen to `this-compilation`. See https://github.com/webpack/webpack/blob/webpack-1/lib/Compiler.js#L327-L328 and https://github.com/webpack/webpack/blob/webpack-1/lib/Compiler.js#L363-L364
- Loading branch information