Webpack plugin to help you with your bundle size
Primary Stack:
Javascript WebpackPlugins - Breaking it down
- Every Webpack plugins must have apply method in them which is called by webpack and webpack gives the compiler instance as argument to that method.
- A plugins can be class based or function based but if you are building using fuction based then the arugment is again the compiler instance.
- We’re going to use the
compiler.hooks.done
hook which is emitted when the compilation work is done and the bundled file is generated
Read More About Here - https://github.com/manzil-infinity180/webpack-bundlesize-plugins