zachleat / speedlify

Benchmark the web performance and accessibility of sites over time.
https://www.speedlify.dev/
MIT License
919 stars 167 forks source link

feature: allow sites to be disabled through file naming #60

Open khawkins98 opened 1 year ago

khawkins98 commented 1 year ago

A small change that allows a site file configuration to be disabled by ending it with .disabled.js.

I've found this easier/preferable to temporarily deleting the file.

Another approach would be to add a enabled: true/false property, but this was simpler to implement -- and I think it's more obvious if a site is disabled.

Maybe you'll like the idea.

Update

I've now seen it's possible to add a skip: true parameter.

I think that makes this PR not required -- however I think this could have been more obvious, open to a PR adding that to the readme?