Skip to content

Repository files navigation

@codegenius/lighthouse-plugin

运行 lighthouse 分析及收集 Web 应用的性能指标

安装

npm i @codegenius/lighthouse-plugin -D
import{defineConfig}from"code-genius";import{lighthouseInstaller}from"@codegenius/lighthouse-plugin";exportdefaultdefineConfig({plugins: [lighthouseInstaller(),],});

使用

命令模式

# 分析及收集 **baidu** 应用的性能指标
codeg lighthouse --url https://www.baidu.com
选项描述
--url <url>Web 应用地址

API 模式

import{lighthouse}from"@codegenius/lighthouse-plugin";(async()=>{awaitlighthouse("https://www.baidu.com");})();

About

运行 lighthouse 分析及收集 Web 应用的性能指标

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages