styles-postprocessor-plugin
v1.1.0
Published
This plugin listens for webpack ```after-emit``` event and apply the power of [PostCSS](https://github.com/postcss/postcss) to the output css files. ```javascript const StylesPostprocessorPlugin = require('styles-postprocessor-plugin');
Downloads
9
Readme
styles-postprocessor-plugin
This plugin listens for webpack after-emit
event and apply the power of PostCSS to the output css files.
const StylesPostprocessorPlugin = require('styles-postprocessor-plugin');
const webpackConfig = {
// some config
plugins: [
new StylesPostprocessorPlugin({
root: 'string', // absolute path, default process.cwd()
output: 'string', // absolute or relative path
filter: function (data) {
return data; // work with the content of the .css file
},
plugins: [] // postCss plugins
})
]
};