{"id":19970206,"url":"https://github.com/webdeveric/craco-plugin","last_synced_at":"2026-06-09T11:31:42.572Z","repository":{"id":48822157,"uuid":"368008059","full_name":"webdeveric/craco-plugin","owner":"webdeveric","description":"Create your own CRACO plugins","archived":false,"fork":false,"pushed_at":"2023-04-10T17:59:09.000Z","size":4573,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-26T09:55:46.954Z","etag":null,"topics":["craco","craco-plugin","create-react-app"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-16T23:47:13.000Z","updated_at":"2022-01-22T22:32:38.000Z","dependencies_parsed_at":"2025-01-13T14:57:24.242Z","dependency_job_id":null,"html_url":"https://github.com/webdeveric/craco-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/webdeveric/craco-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/craco-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34105565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["craco","craco-plugin","create-react-app"],"created_at":"2024-11-13T02:53:31.393Z","updated_at":"2026-06-09T11:31:42.552Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @webdeveric/craco-plugin\n\n## Install\n\n```shell\nnpm install @webdeveric/craco-plugin --save\n```\n\n## Usage\n\n```js\nconst { createCracoPlugin } = require('@webdeveric/craco-plugin');\n\nconst myCracoPlugin = createCracoPlugin({\n  // Used in verbose logging.\n  name: 'My Plugin',\n  /**\n   * Provide default values for all of your options.\n   */\n  getOptions(options, context) {\n    return {\n      // Default option values go here.\n      // Tou can use `context.env` to conditionally set values based on the NODE_ENV.\n      ...options,\n    };\n  },\n  /*\n   * These arrays should contain functions that modify the provided configuration object.\n   * At lease one of the arrays should be provided.\n   *\n   * You can directly modify the `config` or you can return a new object.\n   * The return value of this function will be the `config` parameter for\n   * the next function in this array. If you don't return a value, this\n   * `config` object will be used for the next function's `config` parameter.\n   *\n   * Each function can take 4 parameters\n   *  - config (one of: cracoConfig, webpackConfig, devServerConfig, jestConfig)\n   *  - pluginOptions\n   *  - context\n   *  - cracoConfig\n   */\n  craco = [\n    (config, pluginOptions, context, cracoConfig) =\u003e config,\n  ],\n  webpack = [\n    (webpackConfig, pluginOptions, context, cracoConfig) =\u003e webpackConfig,\n  ],\n  devServer = [\n    (devServerConfig, pluginOptions, context, cracoConfig) =\u003e devServerConfig,\n  ],\n  jest = [\n    (jestConfig, pluginOptions, context, cracoConfig) =\u003e jestConfig,\n  ],\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fcraco-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fcraco-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fcraco-plugin/lists"}