You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Common total hard to understand how I can get gzip total. After couple hours I could understand what for getting gzip size describe I must compress all my files with compression-webpack-plugin. I don't have permission in your repository and can't create PR, but pls add help describe for other people
example from readme which I created but cannot create PR:
In your application, if you want to add gzip size in total, you will need to create gzip files from your project.
For example, you should add minRatio: Infinity in compression-webpack-plugin for get it because default value for minRatio: 0.8
// webpack.config.jsconst{BundleAnalyzerPlugin}=require('webpack-bundle-analyzer')// optionally you can also output compressed/gzipped stats. Requires a version >=1.1.0constCompressionPlugin=require('compression-webpack-plugin')module.exports={plugins: [
...plugins,// not requirednewCompressionPlugin({test: /\.(js|css|json)(\?.*)?$/i,algorithm: 'gzip',minRatio: Infinity,}),// requirednewBundleAnalyzerPlugin({// generate the stats.json filegenerateStatsFile: true})]}
The text was updated successfully, but these errors were encountered:
In Common total hard to understand how I can get gzip total. After couple hours I could understand what for getting gzip size describe I must compress all my files with compression-webpack-plugin. I don't have permission in your repository and can't create PR, but pls add help describe for other people
example from readme which I created but cannot create PR:
In your application, if you want to add gzip size in total, you will need to create gzip files from your project.
For example, you should add minRatio: Infinity in compression-webpack-plugin for get it because default value for minRatio: 0.8
The text was updated successfully, but these errors were encountered: