webpack-plugin-bundlesize

0.2.2 • Public • Published

WIP ⚠️ The package is still in development stage

Do help with your awesome contributions and issues

Micro Plugins is still in WIP too would love the feedback over that

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
  • Typescript Migration

Package Sidebar

Install

npm i webpack-plugin-bundlesize

Weekly Downloads

0

Version

0.2.2

License

ISC

Unpacked Size

290 kB

Total Files

12

Last publish

Collaborators

  • anixsaha