1.1.0 • Published 6 years ago
styles-postprocessor-plugin v1.1.0
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
})
]
};