Skip to content

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

@cooperra

Description

@cooperra

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:

class PostCSS {
static process(data, write) {
postcss(config.plugins)

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

.process(JSON.parse(data).raw_content, { from: undefined })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions