@@ -166,8 +166,10 @@ function sanitizeDockerfileOutput(result: string): string {
166
166
normalizeNewlines ,
167
167
stripANSIEscapes ,
168
168
stripRushStageNumbers ,
169
+ stripWebpackHash ,
169
170
sanitizeVersionSpecifiers ,
170
171
sanitizeTimestamps ,
172
+ sanitizeSizes ,
171
173
sanitizeUnimportantGulpOutput ,
172
174
stripAbsoluteImportPaths ,
173
175
] . reduce ( ( result , f ) => f ( result ) , result ) ;
@@ -185,6 +187,14 @@ function stripRushStageNumbers(result: string): string {
185
187
return result . replace ( / \d + o f \d + : / g, "XX of XX:" ) ;
186
188
}
187
189
190
+ function stripWebpackHash ( result : string ) : string {
191
+ return result . replace ( / H a s h : \w + / g, "Hash: [redacted]" )
192
+ }
193
+
194
+ function sanitizeSizes ( result : string ) : string {
195
+ return result . replace ( / \d + ( \. \d + ) ? ( ( K i | M ) B | b y t e s ) / g, "X KiB" ) ;
196
+ }
197
+
188
198
/**
189
199
* Gulp's output order within a `parallel` block is nondeterministic (and there's no way to configure it to execute in series),
190
200
* so we purge as much of the gulp output as we can
@@ -200,6 +210,7 @@ function sanitizeTimestamps(result: string): string {
200
210
return result . replace ( / \[ \d ? \d : \d \d : \d \d ( A | P ) M \] / g, "[XX:XX:XX XM]" )
201
211
. replace ( / \[ \d ? \d : \d \d : \d \d \] / g, "[XX:XX:XX]" )
202
212
. replace ( / \/ \d + - \d + - [ \d _ T Z ] + - d e b u g .l o g / g, "\/XXXX-XX-XXXXXXXXX-debug.log" )
213
+ . replace ( / \d + \/ \d + \/ \d + \d + : \d + : \d + ( A M | P M ) / g, "XX/XX/XX XX:XX:XX XM" )
203
214
. replace ( / \d + ( \. \d + ) ? s e c ( o n d s ? ) ? / g, "? seconds" )
204
215
. replace ( / \d + ( \. \d + ) ? m i n ( u t e s ? ) ? / g, "" )
205
216
. replace ( / \d + ( \. \d + ) ? ? m ? s / g, "?s" )
@@ -210,7 +221,8 @@ function sanitizeVersionSpecifiers(result: string): string {
210
221
return result
211
222
. replace ( / \d + .\d + .\d + - i n s i d e r s .\d \d \d \d \d \d \d \d / g, "X.X.X-insiders.xxxxxxxx" )
212
223
. replace ( / R u s h M u l t i - P r o j e c t B u i l d T o o l ( \d + ) \. \d + \. \d + / g, "Rush Multi-Project Build Tool $1.X.X" )
213
- . replace ( / ( [ @ v \( ) ] ) \d + \. \d + \. \d + / g, "$1X.X.X" ) ;
224
+ . replace ( / ( [ @ v \( ) ] ) \d + \. \d + \. \d + / g, "$1X.X.X" )
225
+ . replace ( / w e b p a c k \d + \. \d + \. \d + / g, "$1.X.X" ) ;
214
226
}
215
227
216
228
/**
0 commit comments