node-gradle / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
599 stars 117 forks source link

there is no way to disable progress logs of npm task #312

Closed vladbakumenko closed 1 month ago

vladbakumenko commented 2 months ago

When you run the npm_run_build command, a lot of build logs are displayed in the console. Is it possible to hide them? image

deepy commented 1 month ago

At a glance it looks like webpack thinks it's running in an interactive terminal by mistake, I'd start by looking at webpack's configuration

But there's nothing connecting the log systems, so from this plugin's perspective you could hide standard out or standard err, or both Only showing stderr will probably get you most of the important information, but in general this is best configured downstreams (in this case in webpack)

deepy commented 1 month ago

I guess there's also the option of filtering lines that include [webpack.Progress]

vladbakumenko commented 1 month ago

thanks for response!