方法一:
安装lighthouse
npm install -g lighthouse
# or use yarn: yarn global add lighthouse
lighthouse使用
请使用查看帮助文档来使用:lighthouse --help
lighthouse <url> <options>
例如:
lighthouse https://www.oschina.net --preset=desktop
npm install -g lighthouse
# or use yarn: yarn global add lighthouse
请使用查看帮助文档来使用:lighthouse --help
lighthouse <url> <options>
例如:
lighthouse https://www.oschina.net --preset=desktop