Do you want to request a feature or report a bug?
What is the current behavior?
webpack --watch does not write anything to stdout that would clearly indicate the current incremental build has (1) started or (2) is done/complete. See image attached.
What is the expected behavior?
I would expect, for the purposes of ecosystem tooling, that
webpack --watch would write a clear message to stdout (1) when a file changed and (2) when it was done outputting the new result.
tsc --watch writes this to stdout:
(1) “File change detected.”
(2) “Compilation completed.”
In this way,
tsc allows ecosystem tooling to “hook into”
tsc -w, and listen for stdout so as to hook into
tsc -w. You can see the output from
tsc -w in the picture below.
If this is a feature request, what is motivation or use case for changing the behavior?
The motivation is write better test runners that can run tests upon changes.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
tsc -w output:
webpack -w output:
As you can see, it’s pretty much impossible to know when
webpack -w has completed it’s incremental build.