Skip to content

Commit

Permalink
combine percyCSS similar to web projects
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjwala committed Sep 11, 2023
1 parent 1792bac commit 5a1251e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a1251e

Please sign in to comment.