Open jack-sf opened 5 years ago
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.
...and sorry about the instability of ios-safari. I'm working on that, I hope to have an update for you soon!
Would a --target
be a better name?
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.)