You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publisher ads includes LH as a dependency, and you're expected to clone their repo and run their CLI: node index.js <url>
Treo's field perf has LH as a peer dep and you're expected to create a project and install field-perf as a dep, then do npx lighthouse https://url --plugins=lighthouse-plugin-field-performance
Both of these seem a little backward. Most CLI users are expected to have LH as a global install.
(The situation where we're fine (I think) is when LH is a devDep and people run a yarn lighthouse script... in that case plugins should install (as another devDep) and run just fine.)
But with a global install of Lighthouse... what about plugins... Do you also install them as a global module? If so, the current --plugins= CLI flag doesn't successfully resolve them. If we don't support plugins with a global LH, then we'll need to document it. (but that seems bad).
The text was updated successfully, but these errors were encountered:
paulirish
changed the title
Unclear model for installing using a plugin alongside LH
Unclear model for installing/using a plugin alongside LH
May 24, 2019
node index.js <url>
npx lighthouse https://url --plugins=lighthouse-plugin-field-performance
Both of these seem a little backward. Most CLI users are expected to have LH as a global install.
(The situation where we're fine (I think) is when LH is a devDep and people run a
yarn lighthouse
script... in that case plugins should install (as another devDep) and run just fine.)But with a global install of Lighthouse... what about plugins... Do you also install them as a global module? If so, the current
--plugins=
CLI flag doesn't successfully resolve them. If we don't support plugins with a global LH, then we'll need to document it. (but that seems bad).The text was updated successfully, but these errors were encountered: