зеркало из https://github.com/github/lightcrawler.git
Use path to lighthouse-cli/index.js
This commit is contained in:
Родитель
818b831845
Коммит
d46955c170
4
index.js
4
index.js
|
@ -54,7 +54,9 @@ function runLighthouse (url, callback) {
|
|||
'--chrome-flags=--headless --disable-gpu',
|
||||
`--config-path=${path.join(__dirname, 'config.json')}`
|
||||
]
|
||||
const lighthouse = ChildProcess.spawn(path.join(__dirname, 'node_modules', '.bin', 'lighthouse'), args)
|
||||
|
||||
const lighthousePath = require.resolve('lighthouse/lighthouse-cli/index.js')
|
||||
const lighthouse = ChildProcess.spawn(lighthousePath, args)
|
||||
|
||||
let output = ''
|
||||
lighthouse.stdout.on('data', (data) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче