postcss-loader
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -0,1 +1,4 @@ | ||
## 0.11 | ||
* Add `postcss-loader-before-processing` webpack event (by Jan Nicklas). | ||
## 0.10.1 | ||
@@ -2,0 +5,0 @@ * Better syntax error message (by Andrey Popp). |
@@ -88,2 +88,9 @@ var formatCodeFrame = require('babel-code-frame'); | ||
// Allow plugins to add or remove postcss plugins | ||
plugins = this._compilation.applyPluginsWaterfall( | ||
'postcss-loader-before-processing', | ||
[].concat(plugins), | ||
params | ||
); | ||
postcss(plugins).process(source, opts) | ||
@@ -90,0 +97,0 @@ .then(function (result) { |
{ | ||
"name": "postcss-loader", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "PostCSS loader for webpack", | ||
@@ -5,0 +5,0 @@ "keywords": ["webpack", "loader", "css", "postcss", "postcss-runner"], |
@@ -215,2 +215,3 @@ # PostCSS for Webpack [![Build Status][ci-img]][ci] | ||
[CSS Modules]: https://github.com/webpack/css-loader#css-modules | ||
## Custom Syntaxes | ||
@@ -256,3 +257,2 @@ | ||
### JS Styles | ||
@@ -295,2 +295,14 @@ | ||
[postcss-js]: https://github.com/postcss/postcss-js | ||
## Webpack Events | ||
Webpack provides webpack-plugin developers a convenient way | ||
to hook into the build pipeline. The postcss-loader makes us | ||
of this event system to allow building integrated postcss-webpack tools. | ||
See the [example implementation]. | ||
* `postcss-loader-before-processing` | ||
is fired before processing and allows to add or remove postcss plugins | ||
[example implementation]: https://github.com/postcss/postcss-loader/blob/master/test/webpack-plugins/rewrite.js | ||
[postcss-js]: https://github.com/postcss/postcss-js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14742
99
306