webpack: Only show errors and warnings

Otherwise there is just too much noise and when something is broken, the
error is above 3 pages of pointless logs.

See https://webpack.js.org/configuration/stats/

Cherry-picked from cockpit-podman commit 5989b20a05a.
This commit is contained in:
Martin Pitt 2020-12-17 07:33:17 +01:00 committed by Matej Marusak
parent 6b8611caab
commit dff4b66671

View file

@ -79,6 +79,7 @@ module.exports = {
// cockpit.js gets included via <script>, everything else should be bundled // cockpit.js gets included via <script>, everything else should be bundled
externals: { "cockpit": "cockpit" }, externals: { "cockpit": "cockpit" },
devtool: "source-map", devtool: "source-map",
stats: "errors-warnings",
optimization: { optimization: {
minimize: production, minimize: production,