Removes mini-css-extract-plugin output from your webpack compilation stats output.
npm install cleanup-mini-css-extract-pluginRemoves mini-css-extract-plugin output from your webpack compilation stats output.
Add the plugin to your webpack.config.js:
``js
const CleanupMiniCssExtractPlugin = require("cleanup-mini-css-extract-plugin");
module.exports = {
plugins: [new CleanupMiniCssExtractPlugin()]
};
`
And breathe! ๐
The default parameters are:
`js`
new CleanupMiniCssExtractPlugin({
children: true,
warnings: false
});
If either parameter is a function, this will filter the associated key and provide the filtered items in a callback. Here is an example:
`jsremoved ${removed.length} children
new CleanupMiniCssExtractPlugin({
children: removed => console.log(),removed ${removed.length} warning(s)
warnings: removed => console.log()``
});
You could use this to log filtered items to a file, for example.