Skip to content

Plugin-contrib/bundlesize-webpack-plugin

Repository files navigation

WIP ⚠️ The package is still in development stage

Do help with your awesome contributions and issues

webpack-plugin-bundlesize

Micro Plugins for webpack-plugin-bundlesize

This branch supports the development and implementation of micro plugins in this webpack plugin More like a concept kind of thing

😄

Usage

  1. Installation

  1. In your webpack config webpack.config.js (Your webpack config file)

code

  1. Options - Optional

code

Micro Plugin Development Guide

Refer the examples/micro-plugins for some examples

Instead of apply method for webpack plugins, I changed it to commit method

List of hooks available for this (as of now)

  • onSizeExceed

code

  • onSizeSafe

code

  • onSizeWarn

code

Few More comming soon like beforeRun,error etc...

TODO

  • Monorepo(s) for builtin microplugin

  • Typescript Migration

  • To implement the current in watchRun hook

  • To recommend some optimizations when size exceeding - MicroPlugin

  • To implement the logo and make the looks better

  • To suggest optmizations MicroPlugin List

    • read the config and check whether the splitchunk is implemented or not

    • Minify plugin

    • Codespliting suggestion


Maintainer by

pluggingIn logo