Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Abilities to use lr-mobile-config.js and lr-desktop-config.js

Đang mở
#47 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
performance

Hướng nghiên cứu

Start by locating default-config.js and full-config.js, then trace how the --lighthouse.extends option resolves those profiles. Add lr-mobile-config.js and lr-desktop-config.js so the lr-mobile and lr-desktop values are accepted, and verify that each profile can be selected with the requested command-line option.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

prio:low

Hello,

First I would like to say this extension is really great, it is very convenient for us to be able to run lighthouse tests together with sitespeed.io test, and having the possibility to consult them in just one panel (html reports or grafana).

Actually only two profiles can be extended: default-config.js and full-config.js.

This issue is to sugger to add two more: lr-mobile-config.js and lr-desktop-config.js
So we can set like:

--lighthouse.extends lr-mobile

--lighthouse.extends lr-desktop

This way in combination with the --lighthouse.settings.emulatedFormFactor difference between desktop/mobile are best reflected.

I hope it makes sense.

Thanks!
Best regards

Ngôn ngữ chính
JavaScript
Star
31
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sitespeedio/plugin-lighthouse

Tất cả issue của sitespeedio/plugin-lighthouse

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.