jekyll-postcss icon indicating copy to clipboard operation
jekyll-postcss copied to clipboard

Most configuration in postcss.config.js is ignored

Open cooperra opened this issue 3 years ago • 0 comments

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

cooperra avatar Jan 14 '22 13:01 cooperra