getRuleConfig() {
    const rules = [];
    this.__rules.forEach((v) => {
      rules.push(v.toConfig(this));
    });
    return rules;
  }
generate final rules config for webpack config
@return {Array}