bundle-size
Show bundle file size of npm packages
Installation
$ npm install bundle-size
Usage
in CLI
$ bundle-size --helpShow bundle file size of npm packages Usage bundle-size [packages] [options] Options -e, --env set NODE_ENV -h, --help show help -r, --reporter output style -v, --version print version
Example:
bundle-size reactbundle-size react --env developmentbundle-size react -e development -e production
in Node.js module
const bundleSize = ; ; // react@15.2.1, redux@3.5.2//// env bundle minify gzip// -- 155.65 kB 78.43 kB 24.78 kB// development 150.89 kB 71.58 kB 23.54 kB// production 150.81 kB 57.87 kB 18.28 kB
License
MIT © mkwtys