Closed boltex closed 2 years ago
I was getting the same issue till I set the "dev" flag to false Default is true and will patch the scripts array with an empty one due to the defaultTaks settings. I used the watchRun in my case but it's the same for beforeBuild
if (this.dev) { this.onBeforeBuild = JSON.parse(JSON.stringify(defaultTask)) }
const defaultTask: Tasks = { scripts: [], blocking: false, parallel: false }
hello. Try 2.3.1
by the way where is the 2.3.1 release? The latest shows as 2.2.2
onBeforeBuild doesnt seem to trigger on my project using webpack 5.70.
Others like onBuildStart all seem to work