{"id":13605782,"url":"https://github.com/kolirt/vite-plugin-robots","last_synced_at":"2025-07-07T17:36:55.599Z","repository":{"id":228256079,"uuid":"773517536","full_name":"kolirt/vite-plugin-robots","owner":"kolirt","description":"🤖 Vite plugin for generating robots.txt for production and development builds","archived":false,"fork":false,"pushed_at":"2024-05-15T19:24:33.000Z","size":110,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T05:14:10.102Z","etag":null,"topics":["robots","vite","vite-robots"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kolirt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"custom":"https://www.buymeacoffee.com/kolirt"}},"created_at":"2024-03-17T21:40:31.000Z","updated_at":"2025-04-02T18:27:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dac69aa-a36e-46c7-81ce-c7c630f531a9","html_url":"https://github.com/kolirt/vite-plugin-robots","commit_stats":null,"previous_names":["kolirt/vite-plugin-robots"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kolirt/vite-plugin-robots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolirt%2Fvite-plugin-robots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolirt%2Fvite-plugin-robots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolirt%2Fvite-plugin-robots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolirt%2Fvite-plugin-robots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kolirt","download_url":"https://codeload.github.com/kolirt/vite-plugin-robots/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolirt%2Fvite-plugin-robots/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259964328,"owners_count":22938724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["robots","vite","vite-robots"],"created_at":"2024-08-01T19:01:02.714Z","updated_at":"2025-06-15T11:07:20.043Z","avatar_url":"https://github.com/kolirt.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/kolirt"],"categories":["Packages","Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://vitejs.dev/\"\u003e\u003cimg width=\"200\" height=\"200\" hspace=\"10\" src=\"https://vitejs.dev/logo.svg\" alt=\"vite logo\" /\u003e\u003c/a\u003e\n  \u003ch1\u003eVite Robots.txt\u003c/h1\u003e\n\n  \u003cp\u003e\n    Plugin for \u003ca href=\"https://vitejs.dev/\"\u003eVite\u003c/a\u003e to generating robots.txt for production and development builds.\n  \u003c/p\u003e\n  \n  \u003cimg src=\"https://img.shields.io/node/v/vite-plugin-robots\" alt=\"node-current\" /\u003e\n  \n  \u003cimg src=\"https://img.shields.io/npm/dependency-version/vite-plugin-robots/peer/vite\" alt=\"npm peer dependency version\" /\u003e\n  \n  \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/vite-plugin-robots?label=minfied\" alt=\"npm bundle size\"/\u003e\n  \n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-robots\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/vite-plugin-robots\" alt=\"npm-version\" /\u003e\u003c/a\u003e\n\n  \u003cimg src=\"https://img.shields.io/npm/l/vite-plugin-robots\" alt=\"licence\" /\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/kolirt\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/arial-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\n\u003c/a\u003e\n\n## Introduction\n\nThe package allows you to customize different `robots.txt` for `production` mode and `development` mode.\n\n```bash\nvite build\n```\n\u003cimg src=\"./posters/prod.png\"\u003e\n\n```bash\nvite build --mode=development\n```\n\u003cimg src=\"./posters/dev.png\"\u003e\n\n## Installation\n\nUse yarn or npm to install the package `vite-plugin-robots`.\n\n```bash\nnpm install -D vite-plugin-robots\n\nyarn add --dev vite-plugin-robots\n```\n\n## Setup\n\n```ts\nimport { robots } from 'vite-plugin-robots'\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  plugins: [\n    robots({\n      /* pass your config */\n    })\n  ]\n})\n```\n\n## Configuration robot.txt\n\nThe package copies the corresponding robots.txt according to the build mode.\n\n```\n.robots.[mode].txt         # only loaded in specified mode\n.robots.[mode].txt.local   # only loaded in specified mode, ignored by git\n```\n\nCreate `.robots.production.txt` and `.robots.development.txt` in the project root and the package will start using them.\n\n## License\n[MIT](./LICENSE)\n\n\n# Other packages\n\nCheck out my other projects on my [GitHub profile](https://github.com/kolirt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolirt%2Fvite-plugin-robots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkolirt%2Fvite-plugin-robots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolirt%2Fvite-plugin-robots/lists"}