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
- Installation
- In your webpack config webpack.config.js (Your webpack config file)
Options
- Optional
Micro Plugin Development Guide
examples/micro-plugins for some examples
Refer the Instead of apply
method for webpack plugins, I changed it to commit
method
List of hooks available for this (as of now)
onSizeExceed
onSizeSafe
onSizeWarn
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