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?
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
stylelintand 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 onoptions, though?Any ideas on how to handle this?