{"id":13417408,"url":"https://github.com/antfu/vite-plugin-restart","last_synced_at":"2025-05-15T12:05:32.789Z","repository":{"id":44746745,"uuid":"348039440","full_name":"antfu/vite-plugin-restart","owner":"antfu","description":"Custom files/globs to restart Vite server","archived":false,"fork":false,"pushed_at":"2024-11-27T09:35:47.000Z","size":262,"stargazers_count":188,"open_issues_count":9,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T20:57:35.470Z","etag":null,"topics":["auto-restart","vite","vite-plugin"],"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/antfu.png","metadata":{"funding":{"github":["antfu"],"open_collective":"antfu"},"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}},"created_at":"2021-03-15T16:13:57.000Z","updated_at":"2025-03-30T07:32:11.000Z","dependencies_parsed_at":"2024-10-16T03:41:19.565Z","dependency_job_id":"ca2101c3-57cb-4117-b728-46f44fdc04fe","html_url":"https://github.com/antfu/vite-plugin-restart","commit_stats":{"total_commits":29,"total_committers":9,"mean_commits":"3.2222222222222223","dds":"0.27586206896551724","last_synced_commit":"fd851baa1c7734f901c69ca5b43f10e506bdac84"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fvite-plugin-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fvite-plugin-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fvite-plugin-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fvite-plugin-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antfu","download_url":"https://codeload.github.com/antfu/vite-plugin-restart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337613,"owners_count":22054253,"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":["auto-restart","vite","vite-plugin"],"created_at":"2024-07-30T22:00:36.633Z","updated_at":"2025-05-15T12:05:27.776Z","avatar_url":"https://github.com/antfu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu","https://opencollective.com/antfu"],"categories":["Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"\u003ch2 align='center'\u003e\u003csamp\u003evite-plugin-restart\u003c/samp\u003e\u003c/h2\u003e\n\n\u003cp align='center'\u003eCustom files/globs to restart Vite server\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003ca href='https://www.npmjs.com/package/vite-plugin-restart'\u003e\n\u003cimg src='https://img.shields.io/npm/v/vite-plugin-restart?color=222\u0026style=flat-square'\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n## Usage\n\nInstall\n\n```bash\nnpm i vite-plugin-restart -D # yarn add vite-plugin-restart -D\n```\n\nAdd it to `vite.config.js`\n\n```ts\n// vite.config.js\nimport ViteRestart from 'vite-plugin-restart'\n\nexport default {\n  plugins: [\n    ViteRestart({\n      restart: [\n        'my.config.[jt]s',\n      ]\n    })\n  ],\n}\n```\n\nChanges to `my.config.js` or `my.config.ts` will now restart the server automatically.\n\n## Motivation\n\nByebye `nodemon -w my.config.js -x 'vite'`\n\n## License\n\nMIT License © 2021 [Anthony Fu](https://github.com/antfu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fvite-plugin-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantfu%2Fvite-plugin-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fvite-plugin-restart/lists"}