vite-plugin-tray-notifier
v0.1.4
Published
Show an icon in tray when HMR completes.
Downloads
30
Readme
vite-plugin-tray-notifier
Shows a tray icon that HMR has completed. Only runs in dev mode.
Quick start
Install it:
pnpm add vite-plugin-tray-notifier -D # or npm or yarn
Use it:
import { defineConfig } from 'vite'
import notifier from 'vite-plugin-tray-notifier'
const options = {
// Use .png icon in macOS/Linux and .ico format in windows
icon: '<base64 image string>', // defaults to Vite logo
title: 'HMR complete',
timeout: 3000, // hide tray after 3 seconds
}
export default defineConfig({
plugins: [notifier(options)],
})
Credits
- https://github.com/joshnuss/vite-plugin-notifier
- https://github.com/getlantern/systray
- https://github.com/zaaack/systray-portable
License
MIT