Package Exports
- package-size
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (package-size) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
package-size
Install
yarn global add package-sizeUsage
# get the size of vue bundle
package-size vue
# get the size of react+react-dom bundle
package-size react,react-dom
# get the size of vue react+react-dom preact bundles
package-size vue react,react-dom preact
# get the size of package in current working directory
# it should be already installed or `require-able` in cwd
package-size object-assign --cwdIf the package contains ES6 code, please use --es6 option, otherwise it will throw error.
How does it work
Packages will be cached at ~/.package-size-cache and we use yarn-install to install them, if Yarn is not available on your machine, it automatically fallbacks to npm install.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
package-size © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin