Unverified Commit 30fe0b83 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

avoid output of webpack stats (#61023)

### What?

`ANALYZE=1` is set in CI, but this shouldn't emit stats.

### Why?

It sometimes causes the `lint` step to fail as prettier checks these
stats files too


Closes PACK-2280
parent 142584cb
......@@ -26,7 +26,7 @@ module.exports = function (task) {
})
}
if (process.env.ANALYZE) {
if (process.env.ANALYZE_STATS) {
require('fs').writeFileSync(
require('path').join(__dirname, options.name + '-stats.json'),
JSON.stringify(stats.toJson())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment