addWebpackModuleRule = rule => config => {
  for (let _rule of config.module.rules) {
    if (_rule.oneOf) {
      _rule.oneOf.unshift(rule);
      break;
    }
  }
  return config;
}
Add the provided module to the webpack module rules array.

@param rule The rule to be added
@see https://webpack.js.org/configuration/module/#modulerules