1.1.1 โ€ข Published 2 years ago

cleanup-mini-css-extract-plugin v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.1.1

2 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago