Jhernandez has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/371765 )
Change subject: Chore: make Webpack quieter ...................................................................... Chore: make Webpack quieter Silence is golden. Verbose informational output is useful for debugging but may conceal important issues. Only report warnings and errors from Webpack and its pipeline. Also, remove `target: "web"` since this is the default value: https://webpack.js.org/configuration/target/. Change-Id: I59895dee5d2257e6172345d61e49096a898f4648 --- M webpack.config.js 1 file changed, 18 insertions(+), 4 deletions(-) Approvals: Jhernandez: Verified; Looks good to me, approved diff --git a/webpack.config.js b/webpack.config.js index 390b89e..7766e02 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,12 +11,23 @@ } }; -module.exports = { - target: "web", +// There is no builtin Stats "warnings" preset. +// https://github.com/webpack/webpack/blob/7fe0371/lib/Stats.js#L886 +// https://github.com/webpack/webpack/blob/7fe0371/lib/Stats.js#L101-L131 +const WARNINGS_STATS_PRESET = { + all: false, // Default all options to false. + errors: true, + errorDetails: true, + moduleTrace: true, + warnings: true +}; +module.exports = { entry: { index: "./src/client/index" }, + + stats: WARNINGS_STATS_PRESET, output: { path: paths.client.output, @@ -36,7 +47,10 @@ rules: [ { test: /\.tsx?$/, - loader: "ts-loader" + loader: "ts-loader", + options: { + logLevel: "error" + } } ] }, @@ -48,7 +62,7 @@ new webpack.NamedModulesPlugin(), // Clean the build folder on restarts - new CleanWebpackPlugin(paths.client.output, { verbose: true }), + new CleanWebpackPlugin(paths.client.output, { verbose: false }), // Generate a json manifest with the entry points and assets names to use // in the server to pass to the HTML page template -- To view, visit https://gerrit.wikimedia.org/r/371765 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I59895dee5d2257e6172345d61e49096a898f4648 Gerrit-PatchSet: 1 Gerrit-Project: marvin Gerrit-Branch: master Gerrit-Owner: Niedzielski <[email protected]> Gerrit-Reviewer: Jhernandez <[email protected]> Gerrit-Reviewer: Sniedzielski <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
