feat(cli): Load browserslist configuration if no --targets supplied.#324
Conversation
|
This PR introduces browserslist configuration auto-discovery. ⚡ The changes are pretty straightforward, as I chose to require a negative boolean flag This allows the preserve_custom_media CLI integration test to pass with an added I am convinced that the vast majority of users is going to want to use browserslist - with either configuration discovery or at least the built-in defaults. However, this could be considered a breaking change needing a major semver bump. If you prefer to stick to Please let me know what you prefer! Detail question: |
|
Thank you for your review! I will switch from opt out to opt in to keep the change non-breaking. I'll also need to write some CLI integration tests for browserslist config discovery and browserslist defaults (where opted in). |
Latest changes (cb9a3e6)
Observations these changes were based onBrowserslist config auto-discovery's unwanted effect on tests, as well as potential CLI users:
Handling caveats in tests where browserslist config auto-discovery is enabled:
@devongovett Ready for renewed review. |
devongovett
left a comment
There was a problem hiding this comment.
Thank you, this looks great!
|
Thanks @devongovett - this means a lot to me. |
Fixes #293
Fixes #281