@silesia-corporation/webpack-css-stats-plugin
v0.5.0
Published
Plugin creating css stats
Downloads
8
Maintainers
Readme
webpack-css-stats-plugin
Plugin creates HTML and JSON files with CSS files stats.
Usage
- Install
webpack-css-stats-plugin
as a dev-dependency:
npm install --save-dev @silesia-corporation/webpack-css-stats-plugin
- Enable the plugin by adding it to your
.webpack.config.js
:
plugins: [
new CssReportGeneratorPlugin({
disabled: false // Optional: disable plugin
outputSuffix: '-CSSRaport' // Required: suffix for generated files
outputPath: 'path' // Required: output path
inputFilesPrefixes: ['example', 'example2'], // Required: input files prefixes
inputPath: 'path', // Required: input path
reporters: ['html, 'json'] // Optional: report extensions default value ['html, 'json']
})
]