{"size": 611, "ext": "js", "max_stars_repo_path": "packages/react-scripts/config/overrides.js", "max_stars_repo_name": "Kyr/create-react-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/react-scripts/config/overrides.js", "max_issues_repo_name": "Kyr/create-react-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/react-scripts/config/overrides.js", "max_forks_repo_name": "Kyr/create-react-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7096774194, "max_line_length": 68, "alphanum_fraction": 0.6612111293}
/**
 * Allow apply some overrides without ejecting
 * Absolute dangerously option
 *
 * It's not part of facebooks's CRA
 */
'use strict';
const paths = require('./paths');
const chalk = require('react-dev-utils/chalk');

function init() {
  const overrides = require(paths.appPackageJson).webpackOverrides;

  if (overrides) {
    console.log(
      chalk.yellow(
        "Will apply webpack's config overrides from package.json.\n"
      ),
      chalk.yellow.bold("Please be aware: it's dangerous.\n")
    );

    return overrides;
  }

  return {};
}

const overrides = init();

module.exports = overrides;
