cyclonedx-webpack-plugin
cyclonedx-webpack-plugin copied to clipboard
Option to Suppress or Control Log Output (e.g., "skipped Component from PkgPath")
Is your feature request related to a problem? Please describe.
I'm using @cyclonedx/webpack-plugin in a CI/CD pipeline, and it outputs log lines like:
<w> skipped Component from PkgPath /home/vsts/work/1/s/modules/techem-portal-frontend-loader/package.json
These logs appear when components are skipped—usually due to missing metadata in package.json. While helpful for debugging, they create noise in CI logs and currently cannot be suppressed. Webpack's ignoreWarnings does not apply, as the messages come from the plugin itself.
Describe the solution you'd like
It would be great to have a way to control or suppress this logging output—e.g., via a logLevel, quiet mode, or a flag to skip "skipped component" messages specifically. This would allow cleaner output in automated environments.
Describe alternatives you've considered
- Using
grep -vor similar in shell scripts to filter the logs (works, but feels like a workaround). - Forking/patching the plugin to remove or control this specific log output.
- Ignoring the logs entirely (not ideal in shared CI logs).
Additional context
This request is focused specifically on the log messages about skipped components. Other output from the plugin is fine or helpful.
Contribution
- [ ] I am willing to provide an implementation
- [x] I will wait until somebody else implements it