Détail du package

cleanup-mini-css-extract-plugin

azcn25034.7kMIT1.1.1

Removes mini-css-extract-plugin output from your webpack compilation stats output.

readme

cleanup-mini-css-extract-plugin 🧹

Removes mini-css-extract-plugin output from your webpack compilation stats output.

How to use

Add the plugin to your webpack.config.js:

const CleanupMiniCssExtractPlugin = require("cleanup-mini-css-extract-plugin");

module.exports = {
  plugins: [new CleanupMiniCssExtractPlugin()]
};

And breathe! 🍃

Configuration

The default parameters are:

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:

new CleanupMiniCssExtractPlugin({
  children: removed => console.log(`removed ${removed.length} children`),
  warnings: removed => console.log(`removed ${removed.length} warning(s)`)
});

You could use this to log filtered items to a file, for example.