Skip to content

How to handle multiple loaders with different plugins using postcss.config.js? #158

@bebraw

Description

@bebraw

Hi,

I have the full issue here. The problem is that the user needs to run different plugins on different loaders. One should get only stylelint and so on.

I can see you can return a function from postcss.config.js, but then the problem becomes how to tell the loader definitions apart. Webpack 2 doesn't allow setting custom fields per a loader definition. Maybe we could piggyback on options, though?

Any ideas on how to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions