Skip to content

Commit

Permalink
Do not print webpack progress output in a production build
Browse files Browse the repository at this point in the history
Produces around 2000 rows less output in the production build.
The progress output for a CI build is not relevant and is in the way
when looking for build problems.
  • Loading branch information
Artur- authored and pleku committed May 5, 2020
1 parent 60da8ea commit cf144b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void runWebpack() {
}

List<String> command = Arrays.asList(nodePath,
webpackExecutable.getAbsolutePath(), "--progress");
webpackExecutable.getAbsolutePath());
ProcessBuilder builder = FrontendUtils.createProcessBuilder(command)
.directory(project.getBasedir()).inheritIO();
getLog().info("Running webpack ...");
Expand Down
2 changes: 1 addition & 1 deletion flow-server/src/main/resources/webpack.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module.exports = {
// Generate compressed bundles when not devMode
!devMode && new CompressionPlugin(),
// Give some feedback when heavy builds
new ProgressPlugin(true),
devMode && new ProgressPlugin(true),

// Generates the stats file for flow `@Id` binding.
function (compiler) {
Expand Down

0 comments on commit cf144b0

Please sign in to comment.