{"id":13472636,"url":"https://github.com/IndexXuan/vite-plugin-sleep","last_synced_at":"2025-03-26T17:30:59.829Z","repository":{"id":57393181,"uuid":"366027021","full_name":"IndexXuan/vite-plugin-sleep","owner":"IndexXuan","description":"a vite plugin you never need. slow devServer and slow HMR.","archived":false,"fork":false,"pushed_at":"2021-05-12T07:41:34.000Z","size":18,"stargazers_count":80,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:11:34.743Z","etag":null,"topics":["vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/IndexXuan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T11:58:53.000Z","updated_at":"2024-09-23T07:44:16.000Z","dependencies_parsed_at":"2022-09-26T22:10:32.239Z","dependency_job_id":null,"html_url":"https://github.com/IndexXuan/vite-plugin-sleep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndexXuan%2Fvite-plugin-sleep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndexXuan%2Fvite-plugin-sleep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndexXuan%2Fvite-plugin-sleep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndexXuan%2Fvite-plugin-sleep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IndexXuan","download_url":"https://codeload.github.com/IndexXuan/vite-plugin-sleep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245702168,"owners_count":20658557,"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":["vite","vite-plugin"],"created_at":"2024-07-31T16:00:56.525Z","updated_at":"2025-03-26T17:30:59.520Z","avatar_url":"https://github.com/IndexXuan.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# vite-plugin-sleep\n\n\u003e vite is too fast, we need to rest. a vite-plugin you never need.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/IndexXuan/vite-plugin-sleep/actions/workflows/npm-publish.yml\"\u003e\n   \u003cimg alt=\"NPM Publish\" src=\"https://github.com/IndexXuan/vite-plugin-sleep/actions/workflows/npm-publish.yml/badge.svg\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-sleep\" rel=\"nofollow\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/vite-plugin-sleep.svg\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/IndexXuan/vite-plugin-sleep/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Motivation\n\n- In the old days with webpack, we had many times when we could compile with pay, and with vite it was so fast that we couldn't rest.\n- Time to take a nap in the vite.\n\n## Usage\n\n```sh\nyarn add vite-plugin-sleep\n```\n\n```ts\n// vite.config.ts\nimport sleep from 'vite-plugin-sleep'\n\n/** @see {@link https://vitejs.dev/config/} */\nexport default defineConfig({\n  plugins: [\n    // ...other plugins\n    sleep(/* options */),\n  ],\n})\n```\n\n## Options\n\n```ts\n{\n  /**\n   * DevServer start delay(ms)\n   * @default 20000\n   */\n  devServerStartDelay: number\n  /**\n   * HMR delay(ms)\n   * @default 3000\n   */\n  hmrDelay: number\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIndexXuan%2Fvite-plugin-sleep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIndexXuan%2Fvite-plugin-sleep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIndexXuan%2Fvite-plugin-sleep/lists"}