mhanberg / jekyll-postcss

A plugin to use PostCSS plugins like Autoprefixer or Tailwind CSS with Jekyll.
MIT License
66 stars 12 forks source link

Most configuration in postcss.config.js is ignored #36

Open cooperra opened 2 years ago

cooperra commented 2 years ago

The parser property in postcss.config is completely ignored.

Here's an example postcss.config.js of what I'd like to do:

module.exports = {
  parser: 'postcss-scss',
  plugins: [
    ...
  ]
}

Actually looking at the code, it seems like only the plugins array is used. This is the only reference to config in the whole file:

https://github.com/mhanberg/jekyll-postcss/blob/90d09573b16d2ad5d6b9c3d902dadf0e14e8ac81/bin/postcss#L7-L9

For those looking for a quick-and-dirty workaround, additional options can be added to the process call here:

https://github.com/mhanberg/jekyll-postcss/blob/90d09573b16d2ad5d6b9c3d902dadf0e14e8ac81/bin/postcss#L10