@@ -166,8 +166,10 @@ function sanitizeDockerfileOutput(result: string): string {
166166 normalizeNewlines ,
167167 stripANSIEscapes ,
168168 stripRushStageNumbers ,
169+ stripWebpackHash ,
169170 sanitizeVersionSpecifiers ,
170171 sanitizeTimestamps ,
172+ sanitizeSizes ,
171173 sanitizeUnimportantGulpOutput ,
172174 stripAbsoluteImportPaths ,
173175 ] . reduce ( ( result , f ) => f ( result ) , result ) ;
@@ -185,6 +187,14 @@ function stripRushStageNumbers(result: string): string {
185187 return result . replace ( / \d + o f \d + : / g, "XX of XX:" ) ;
186188}
187189
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+
188198/**
189199 * Gulp's output order within a `parallel` block is nondeterministic (and there's no way to configure it to execute in series),
190200 * so we purge as much of the gulp output as we can
@@ -200,6 +210,7 @@ function sanitizeTimestamps(result: string): string {
200210 return result . replace ( / \[ \d ? \d : \d \d : \d \d ( A | P ) M \] / g, "[XX:XX:XX XM]" )
201211 . replace ( / \[ \d ? \d : \d \d : \d \d \] / g, "[XX:XX:XX]" )
202212 . 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" )
203214 . replace ( / \d + ( \. \d + ) ? s e c ( o n d s ? ) ? / g, "? seconds" )
204215 . replace ( / \d + ( \. \d + ) ? m i n ( u t e s ? ) ? / g, "" )
205216 . replace ( / \d + ( \. \d + ) ? ? m ? s / g, "?s" )
@@ -210,7 +221,8 @@ function sanitizeVersionSpecifiers(result: string): string {
210221 return result
211222 . 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" )
212223 . 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" ) ;
214226}
215227
216228/**
0 commit comments