Warning Under active development
Output Rollup stats JSON file
npm install --dev rollup-plugin-stats
or
yarn add --dev rollup-plugin-stats
// rollup.config.js
const { rollupStats } = require('rollup-plugin-stats');
module.exports = {
plugins: [
// add it as the last plugin
rollupStats(),
],
};
filename
- the JSON filename relative to the build folder, default:stats.json