This plugin save transformed webpack stats.chunks
object as a json file.
$ npm install --save-dev @dvpnt/webpack-chunks-stats-plugin
# or
$ yarn add --dev @dvpnt/webpack-chunks-stats-plugin
const ChunksStatsPlugin = require('@dvpnt/webpack-chunks-stats-plugin');
module.exports = {
plugins: [
new ChunksStatsPlugin({
filename: 'stats.json'
})
]
};