Skip to content
[WIP] Micro Plugins | webpack plugin to help you with your bundle size
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/micro-plugins
src
.editorconfig
.eslintcache
.eslintrc.js
.gitattributes
.gitignore
CHANGELOG.md
README.md
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.