vite-plugin-hmr-notify
v0.1.7
Published
Show a browser notification when HMR completes.
Downloads
15
Readme
vite-plugin-hmr-notify
A fork of vite-plugin-notifier. Uses the Notifications API instead of showing an icon.
Quick start
Install it:
pnpm add vite-plugin-hmr-notify -D # or npm or yarn
Use it:
import { defineConfig } from 'vite';
import notifier from 'vite-plugin-hmr-notify';
// See https://developer.mozilla.org/en-US/docs/Web/API/notification#properties
const options = {
body: 'App updated!',
silent: true,
};
export default defineConfig({
plugins: [notifier(options)],
});
License
MIT