bundlemate
v0.2.1
Published
CLI utility for bundle size optimization
Downloads
7
Maintainers
Readme
BundleMate
What is that?
BundleMate is a CLI tool for bundle size optimization.
Have a look at this demo:
This module is going to help you:
- Find out what are the biggest dependencies in your package in terms of size
- Identify duplicated dependencies
- Compare dependencies and duplicates of different versions of the same package
- Figure our what dependencies were added and removed in the later version of the package
- Optimize the bundle size!
Installation
npm i bundlemate -g
Usage
To identify dependencies and duplicates in your package, simply use the following command:
bundlemate -p packageName@version
where -p
flag is used to specify the name of the package.
To compare two or more versions of a package, list packages one after another:
bundlemate -p packageName@version1 -p packageName@version2
For example, let's compare two versions of @atlaskit/editor-core
package.
bundlemate -p @atlaskit/[email protected] -p @atlaskit/[email protected]
BundleMate will install dependencies, create bundles for each version of the package and generate you the report.
Inspired by webpack-bundle-analyzer