diff --git a/packages/core/src/utils.js b/packages/core/src/utils.js index ee30d88f2..7c5ce2fad 100644 --- a/packages/core/src/utils.js +++ b/packages/core/src/utils.js @@ -48,7 +48,12 @@ export function percyAutomateRequestHandler(req, percy) { considerRegionXPaths: percy.config.snapshot.considerRegions.considerRegionXPaths }, camelCasedOptions - ]); + ], (path, prev, next) => { + switch (path.map(k => k.toString()).join('.')) { + case 'percyCSS': // concatenate percy css + return [path, [prev, next].filter(Boolean).join('\n')]; + } + }); req.body.buildInfo = percy.build; return req;