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
Sharing a preset across teams or packages is a great way to reduce complexity. It surprises me that PostCSS forces me to use a postcss.config.js file rather than giving me the option to point to a shared package.
Passing a package name instead of a simple path is easy to integrate with existing options. An intuitive command line syntax might look like this:
Hello, I also looking for such option.
For the monorepo, or multiple packages will be very useful to have possibility for share the config, just by referencing the package which that config delivers just by the literal.
As alternative approach to config option we can consider extends config property like the:
Looks like the extends approach is become some typical for the problem. extends approach is also a bit more flexible as it also supports the real configuration extending.
On other hands will require some rethink how to resolve plugins.
Sharing a preset across teams or packages is a great way to reduce complexity. It surprises me that PostCSS forces me to use a
postcss.config.js
file rather than giving me the option to point to a shared package.Passing a package name instead of a simple path is easy to integrate with existing options. An intuitive command line syntax might look like this:
Although, the preferred option would clearly be referencing it in
package.json
:Prettier implements sharing configs quite beautifully with its
package.json
option.To minimize friction for the user, the path string should optimally be resolved in the same way module paths are resolved in Parcel or Webpack.
The text was updated successfully, but these errors were encountered: