node-gradle / gradle-node-plugin

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

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

Closed vladbakumenko closed 5 months ago

vladbakumenko commented 6 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 5 months 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 5 months ago

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

vladbakumenko commented 5 months ago

thanks for response!