wordpress-theme-base
wordpress-theme-base copied to clipboard
webpack-dev-server spam on Firefox
For whatever reason, Firefox and webpack-dev-server don't like each other. I think that the problem is in self signed certificates, as this doesn't happen if HTTPS isn't used.
Workaround:
disable HTTPS in webpack config, or override console.log. In Chrome you can use -WDS
as filter to disable these messages if they happen.
const _log = console.log
console.log = function () {
if (arguments[0].indexOf('[HMR]') === -1) {
return _log.apply(console, arguments)
}
}