0.0.1-never.1 • Published 3 years ago
vite-plugin-sleep v0.0.1-never.1
vite-plugin-sleep
vite is too fast, we need to rest. a vite-plugin you never need.
Motivation
- 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.
- Time to take a nap in the vite.
Usage
yarn add vite-plugin-sleep
// vite.config.ts
import sleep from 'vite-plugin-sleep'
/** @see {@link https://vitejs.dev/config/} */
export default defineConfig({
plugins: [
// ...other plugins
sleep(/* options */),
],
})
Options
{
/**
* DevServer start delay(ms)
* @default 20000
*/
devServerStartDelay: number
/**
* HMR delay(ms)
* @default 3000
*/
hmrDelay: number
}
0.0.1-never.1
3 years ago
0.0.1-never.0
3 years ago