<!-- Please don't delete this template otherwise your issue will be closed immediately --> <!-- Before creating an issue please make sure you are using the latest version of webpack. --> ### Bug report Throw error when link doesn't have parentNode.  see this pr to fix it: https://github.com/webpack-contrib/mini-css-extract-plugin/pull/1016