-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running size-limit --version
returns undefined
#10
Comments
Very strange. Seems like you have some problem in Here is my output: $ npx size-limit -v
0.8.0 |
|
Super strange... must have been some version conflict or something in my ./node_modules/. A quick $(npm bin)/size-limit -h
/Users/pdehaan/dev/github/mozilla/something-awesome/node_modules/.bin/size-limit
Options:
--why, -w Show package content [boolean]
--version, -v Show version number [boolean]
--help, -h Show help [boolean]
Size Limit will read size-limit section from package.json.
Configurtion example:
"size-limit": [
{
"path": "index.js",
"limit": "9 KB",
"babili": true
}
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
size-limit
as a devDep.$(npm bin)/size-limt --version
or create an npm script in package.json.$(npm bin)/size-limt -v
alias (or npm script)Actual results:
Oddly, calling
size-limit -v
alias fails with a hard error:The text was updated successfully, but these errors were encountered: