kimmobrunfeldt / squint

Makes visual reviews of web app releases easy.
MIT License
28 stars 1 forks source link

Why is only the second site being crawled in compare? #2

Closed kimmobrunfeldt closed 3 years ago

kimmobrunfeldt commented 3 years ago

When running squint compare https://prod.myapp.com https://beta.myapp.com, docs mention that beta site is crawled for paths. Why not both?

kimmobrunfeldt commented 3 years ago

To save time. Crawling can be pretty intensive for large sites. If you need a union of all paths, you can run crawl command twice, and use bash sort and uniq to get paths from both versions (untested command):

squint crawl https://prod.myapp.com > paths.txt
squint crawl https://beta.myapp.com >> paths.txt
cat paths.txt | sort | uniq > uniq-paths.txt
squint compare https://prod.myapp.com https://beta.myapp.com --paths-file uniq-paths.txt