Falldot / esbuild-dev-server

This plugin allows you to start a local server with hot reloading with Esbuild
MIT License
48 stars 1 forks source link

onBeforeRebuild and onAfterRebuild never trigger #4

Open joeworkman opened 2 years ago

joeworkman commented 2 years ago

I could be wrong but I don't think that these two callbacks ever actually get triggered. I don't see then mentioned anywhere in the esbuild-dev-server.js source as well.

    port            : "8080",
    watchDir        : "src",
    index           : "dist/index.html",
    staticDir       : "dist",
    onBeforeRebuild : () => console.log("onBeforeRebuild"),
julenr commented 2 years ago

Same here, never happen