1. rollup-plugin-bundle-size
Output the size of your bundle
rollup-plugin-bundle-size
Package: rollup-plugin-bundle-size
Created by: vimeo
Last modified: Sun, 26 Jun 2022 13:58:06 GMT
Version: 1.0.3
License: MIT
Downloads: 325,491
Repository: https://github.com/vimeo/rollup-plugin-bundle-size

Install

npm install rollup-plugin-bundle-size
yarn add rollup-plugin-bundle-size

rollup-plugin-bundle-size npm

A rollup plugin to show the size of the generated bundle(s).

Installation

 npm install --save-dev rollup-plugin-bundle-size

Usage

JS API

 const rollup = require('rollup');
const bundleSize = require('rollup-plugin-bundle-size');

rollup.rollup({
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}).then((bundle) => {
    ...
});

Config File

 import bundleSize from 'rollup-plugin-bundle-size';

export default {
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin