Comments (4)
I was going to open a similar issue! I think the config is not ignored, it doesn't throw error even if you pass the budget via config-path
, it is just because the code doesn't implement performance-budget checking (see https://github.com/andreasonny83/lighthouse-ci/blob/master/bin/cli#L181-L202)
lighthouse
just response result in json format, but it is up to lighthouse-ci
to parse it and response to user
from lighthouse-ci.
Thanks, both @grebenyuksv-preply and @foray1010 .
I'm sorry about the unexpected behaviour. I'll try to have a look as soon as I have time and release a patch for the cli.
Alternatively, if you can create a PR with that fix, I'll be more than happy to review it. That will speed up the releasing process for sure.
Thanks again
from lighthouse-ci.
--budget-pass
is passed to lighthouse
npm module, but is it does not look like it is processed when you are using lighthouse
from code.
As of now, you can pass budget configurations as a part of configs like:
{
"extends": "lighthouse:default",
"settings": {
"budgets": [
{
"resourceCounts": [
{ "resourceType": "total", "budget": 10 }
],
"resourceSizes": [
{ "resourceType": "total", "budget": 100 }
]
}
]
}
}
from lighthouse-ci.
@asmagin fantastic, it worked! I didn't manage to figure that way out from LH docs.
Feel free to close the issue if it makes sense to you.
from lighthouse-ci.
Related Issues (20)
- LHError: CRI_TIMEOUT HOT 4
- How to test page after authentication required? HOT 1
- how through nodejs code running lighthouse-ci? HOT 1
- Unable to generate report HOT 3
- Cannot read property 'lhr' of undefined HOT 1
- Would you consider supporting lighthouse plugins? HOT 1
- When lighthouse cannot reach site, lighthouse-ci reports all tests passing HOT 1
- Error: No Chrome installations found. HOT 8
- lighthouse-ci doesn't explain why it failed HOT 1
- can not runing in node 8 HOT 1
- No summary table HOT 2
- npm audit (Prototype Pollution vulnerabilities ) HOT 1
- remove snyk as a direct project dependency HOT 1
- v1.10.3 failed HOT 5
- Is there a way to change the name of the report files? HOT 2
- Error on Jenkins, Protocol error (Fetch.disable) HOT 2
- TypeError: categoryIds.forEach is not a function HOT 2
- Update Lighthouse to v7.3.0+ to fix vulnerability HOT 2
- Error: Cannot find module 'lighthouse/report/report-generator' HOT 6
- [URL validation bug] : url's without 'http'/'https' returns LHError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse-ci.