Web 端性能数据上报插件。
npm i git+ssh://[email protected]:fe/perf-report.git
or
yarn add git+ssh://[email protected]:fe/perf-report.git
import { init } from 'perf-report'
init({
project: [project_name],
version: [project_version]
})
举例:
import { init } from 'perf-report'
import pkg from 'package.json'
init({
project: pkg.name,
version: pkg.version
})
git clone [email protected]:fe/perf-report.git
cd perf-report
npm install
打包
npm run build
Git 提交
版本发布
npm version [patch/minor/major] -m "Release Version %s"