{"size": 637, "ext": "js", "max_stars_repo_path": "config-overrides.js", "max_stars_repo_name": "forrestyuan/e-signature", "max_stars_repo_stars_event_min_datetime": "2021-01-29T08:33:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-29T08:33:03.000Z", "max_issues_repo_path": "config-overrides.js", "max_issues_repo_name": "forrestyuan/e-signature", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "config-overrides.js", "max_forks_repo_name": "forrestyuan/e-signature", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.75, "max_line_length": 67, "alphanum_fraction": 0.6436420722}
const {
  override,
  addWebpackAlias,
  addLessLoader,
  addPostcssPlugins,
} = require("customize-cra");
const path = require("path");
/* config-overrides.js */
module.exports = override(
  addWebpackAlias({
    ["@"]: path.resolve(__dirname, "src"),
  }),
  addLessLoader({
    lessOptions: {
      javascriptEnabled: true,
    },
  }),
  addPostcssPlugins([require("postcss-px2rem")({ remUnit: 100 })]),
  // 使babel支持除了src以外的文件
  (config) => {
    // Let Babel compile outside of src/.
    const tsRule = config.module.rules[1].oneOf[2];
    tsRule.include = undefined;
    tsRule.exclude = /node_modules/;
    return config;
  }
);
