mkwtys / bundle-size Goto Github PK
View Code? Open in Web Editor NEWShow bundle file size of npm packages
License: MIT License
Show bundle file size of npm packages
License: MIT License
bundle-size --reporter <reporter>
ref: #9
before:
[ { packages: 'react,react-dom',
bundle: '714.04 kB',
min: '380.71 kB',
gzip: '108.66 kB' }]
after:
[ { packages: '[email protected], [email protected]',
bundle: '714.04 kB',
min: '380.71 kB',
gzip: '108.66 kB' }]
bundle-size react
bundle-size [react, react-dom]
npm-install-package
https://github.com/yoshuawuyts/npm-install-package
because difference of node version 4/5?
AssertionError: [ { modules: [ './test/noop' ], bundle: 618, min: 603, gzip: 500 },
{ modules: [ './test/noop' ],
bundle: 618,
min: 60 deepEqual [ { modules: [ './test/noop' ], bundle: 609, min: 594, gzip: 484 },
{ modules: [ './test/noop' ],
bundle: 609,
min: 59
+ expected - actual
[
{
- "bundle": 618
- "gzip": 500
- "min": 603
+ "bundle": 609
+ "gzip": 484
+ "min": 594
"modules": [
"./test/noop"
]
}
{
- "bundle": 618
+ "bundle": 609
"env": "development"
- "gzip": 500
- "min": 603
+ "gzip": 484
+ "min": 594
"modules": [
"./test/noop"
]
}
{
- "bundle": 618
+ "bundle": 609
"env": "production"
- "gzip": 500
- "min": 603
+ "gzip": 484
+ "min": 594
"modules": [
"./test/noop"
]
}
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
add badges
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/nodejs.yml
actions/checkout v4
actions/setup-node v4
codecov/codecov-action v4
package.json
browserify 17.0.0
cli-table3 0.6.4
envify 4.1.0
minimist 1.2.8
ora 8.0.1
pretty-bytes 6.1.1
uglify-js 3.17.4
jest 29.7.0
Hi,
When i installed it globally, (with nvm)
I suppose that bin file name is bundle-size, but the file name is cli
now.
I attached my bash history.
2012MidMPR:~$ npm i -g bundle-size
/Users/ssohjiro/.nvm/versions/node/v4.4.4/bin/cli -> /Users/ssohjiro/.nvm/versions/node/v4.4.4/lib/node_modules/bundle-size/bin/cli.js
[email protected] /Users/ssohjiro/.nvm/versions/node/v4.4.4/lib/node_modules/bundle-size
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
2012MidMPR:~$ npmdle-size
-bash: npmdle-size: command not found
2012MidMPR:~$ cli
2012MidMPR:~$ cli --help
Show bundle file size of npm packages
Usage
cli [packages] [options]
Options
-e, --env set NODE_ENV
-h, --help show help
-r, --reporter output style
-v, --version print version
2012MidMPR:~$
Thanks for good useful module!
.travis.yml
bundle-size --env production
bundle-size --env [development, production]
ref: #9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.