whoisvadym / eleventy-plugin-postcss

Eleventy plugin for PostCSS library
11 stars 2 forks source link

Open to passing config path down to postcss-load-config? #8

Open mikehaas763 opened 1 year ago

mikehaas763 commented 1 year ago

Hey 👋

I was wondering if you're open to passing a path config down to the postcss-load-config package? This would follow the path like .eleventy.js -> EleventyPluginPostCSS -> Extension -> config-loader.js -> postcss-load-config.

A consumer would configure it like so: eleventyConfig.addPlugin(postCssPlugin, { path: 'projects/blog/.postcssrc.js'});

This is the load-config package section that accepts a path https://github.com/postcss/postcss-load-config/blob/b8cdab0a91052bbe2d19a869534f29170c14d873/src/index.js#L133-L144

whoisvadym commented 1 year ago

Hey @mikehaas763, this is a great suggestion.

Looks like you've done some initial research, feel free to submit a merge request! I'll make sure to put this on my to-do list.