Skip to content

Conversation

@jantimon
Copy link
Contributor

@jantimon jantimon commented Aug 24, 2016

This pull request introduces a new feature.

It allows third party webpack plugins to add or remove postcss plugins using the postcss-loader-before-processing event (using the webpack built in plugin system).

An example can be seen here:
https://github.com/jantimon/postcss-loader/blob/33436d715119258053e5459b7cfde26eeecd0aa1/test/webpack-plugins/rewrite.js

Motivation:
There are cases where a postcss plugin is very tight cupeled with a webpack plugin as it has to access the webpack internals.
In this case it would be nice if this webpack could also add its postcss part to the loader.

@ai
Copy link
Contributor

ai commented Aug 24, 2016

Looks great. Could I ask you two changes:

  1. Remove ChangeLog and version release commits. I will make separated config with version bump with GPG sign (I am cryptopunk :D ).
  2. We need better docs for this feature (my English is poor). We need to describe how other developers could use this feature in their plugins.

@jantimon jantimon force-pushed the feature/postcss-loader-before-processing-event branch from 33436d7 to 80edc87 Compare August 25, 2016 06:40
@jantimon
Copy link
Contributor Author

Updated the pull request as requested. :)

@jantimon jantimon force-pushed the feature/postcss-loader-before-processing-event branch from 80edc87 to f2ebb2d Compare August 25, 2016 06:42
@jantimon jantimon force-pushed the feature/postcss-loader-before-processing-event branch from f2ebb2d to a570b18 Compare August 25, 2016 06:43
@ai
Copy link
Contributor

ai commented Aug 25, 2016

Looks good. Wait I second, I need to finish my talk and them I will release all changes in PostCSS projects.

You don’t need this feature right now, correct?

@jantimon
Copy link
Contributor Author

Cool :) which talk will you give? releasing in the near future would be great but doesn't need to be right now.

@ai ai merged commit 8dc282c into webpack:master Aug 26, 2016
@ai
Copy link
Contributor

ai commented Aug 26, 2016

Released in 0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants