UNPKG

presentomatic

Version:
27 lines (23 loc) 469 B
import { defineConfig } from "vite"; import { analyzer } from 'vite-bundle-analyzer' const reloader = () => ({ name: "custom-hmr", enforce: "post", // HMR handleHotUpdate({ file, server }) { if (file.endsWith(".md")) { console.log("Markdown changed..."); server.ws.send({ type: "full-reload", path: "*", }); } }, }); export default defineConfig({ plugins: [ reloader(), // analyzer() ], base: '' });