方法一:
安裝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