honojs / vite-plugins

Vite Plugins for Hono
https://hono.dev
135 stars 35 forks source link

[@hono/vite-dev-server] Add custom exclude function #20

Open eathic-team opened 1 year ago

eathic-team commented 1 year ago

Add a custom function as an exclude pattern.

eg.

type ExcludeFunction = (url: string, app?: Hono) => boolean
devServer({
  exclude: [(url, app) => return true]
})