Specify path for browserslist.rc #1595
-
Is there any way to say to postcss-preset-env where it should look for the .browserslistrc file? I'm running a monorepo setup and I have my .browserslistrc file sitting in the monorepo root, where other packages also access it from. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no such option. But you can use the Likewise Maybe we should expose the |
Beta Was this translation helpful? Give feedback.
Hi @thomasmattheussen,
There is no such option.
But you can use the
browsers
option to achieve a similar result.This gives you the option to call
browserslist
yourself in JavaScript and pass the result.Likewise
browserslist
itself has theBROWSERSLIST_CONFIG
override option: https://github.com/browserslist/browserslist?tab=readme-ov-file#browserslistrcMaybe we should expose the
path
setting, or even allow an object config the we just pass through?