bosco icon indicating copy to clipboard operation
bosco copied to clipboard

Can we have bosco fail if bundle sizes exceed a specified amount?

Open cressie176 opened this issue 9 years ago • 3 comments

cressie176 avatar Jan 29 '16 16:01 cressie176

@cliftonc I'd like to have a go at implementing this for files initially (not assets yet), by adding a 'maxSizeKb' config key at this level. The maxSizeKb could then be used in the minify module to throw an error if the bundle size exceeds it. Sound ok? The motivation is, the AMP CSS bundle makes our thousands of Job AMP pages invalid if it exceeds 50Kb.

jonnywyatt avatar Feb 21 '17 15:02 jonnywyatt

This is great! Consider also breaking the build on s3push as an alternative as well

gabceb avatar Feb 21 '17 15:02 gabceb

Works for me, go for it.

cliftonc avatar Feb 22 '17 13:02 cliftonc