You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
targets: {
'chrome-desktop': new RemoteBrowserTarget('chrome', {
viewport: '1200x768',
}),
// 'chrome-mobile': new RemoteBrowserTarget('chrome', {
// viewport: '320x640',
// }),
// 'safari-desktop': new RemoteBrowserTarget('safari', {
// viewport: '1200x768',
// }),
'safari-mobile': new RemoteBrowserTarget('safari', {
viewport: '320x640',
}),
ie11: new RemoteBrowserTarget('internet explorer', {
viewport: '1200x768',
}),
// Happo currently throws error 500 for ios-safari builds
// TODO turn it back on when Happo team fixes it
// iphone: new RemoteBrowserTarget('ios-safari', {
// viewport: '375x667',
// }),
},
if I could do happo run --targets ie11 or happo dev --targets safari-mobile , I could limit the targets to be enabled on this run only to the specified targets.
(Similarly as --only xxx works in happo dev mode.)
The text was updated successfully, but these errors were encountered:
This would be a nice addition, thanks for suggesting it!
I can't make any promises to when we'll get to this, so I'd be very happy to accept a PR! I think the easiest way would be to start at src/executeCli.js, add another commander option (--targets?), pass that value to loadUserConfig and have it filter out the right targets.
That would work too. I don't feel strongly about it, as long as you're able to specify one or more targets. Either --targets ie,chrome or --target chrome --target ie, I'm okay with both.
For example, even if my
.happo.js
includesif I could do
happo run --targets ie11
orhappo dev --targets safari-mobile
, I could limit the targets to be enabled on this run only to the specified targets.(Similarly as
--only xxx
works inhappo dev
mode.)The text was updated successfully, but these errors were encountered: