refactor(docs-infra): switch `test-pwa-score` to use headless Chrome (#31414)

This is slightly faster (15%-20%). Currently, this doesn't make a
noticeable difference, since the total time is 10s-15s, but it might
add up, if we decide to run audits on multiple pages.

PR Close #31414
This commit is contained in:
George Kalpakas 2019-07-03 23:24:54 +03:00 committed by Matias Niemelä
parent 76b755e292
commit 8b7a4d7550
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const printer = require('lighthouse/lighthouse-cli/printer');
const logger = require('lighthouse-logger');
// Constants
const CHROME_LAUNCH_OPTS = {};
const CHROME_LAUNCH_OPTS = {chromeFlags: ['--headless']};
const LIGHTHOUSE_FLAGS = {logLevel: 'info'};
const SKIPPED_HTTPS_AUDITS = ['redirects-http', 'uses-http2'];
const VIEWER_URL = 'https://googlechrome.github.io/lighthouse/viewer/';