lightcrawler可以抓取网站并通过Googlelighthouse 运行网站。
npminstall--save-devlightcrawlerlightcrawler--urlhttps://atom.io/--configlightcrawler-config.jsonlightcrawler-config.json看起来像这样:
{"extends":"lighthouse:default","settings":{"crawler":{"maxDepth":2,"maxChromeInstances":5},"onlyCategories":["Accessibility","Performance","BestPractices"],"onlyAudits":["accesskeys","aria-allowed-attr","external-anchors-use-rel-noopener","geolocation-on-start","no-document-write","no-mutation-events","no-old-flexbox","time-to-interactive","user-timings","viewport","without-javascript"]}}
评论