prepublish-page-check

1.0.1 • Public • Published

Intro

适用于对vue项目构建产物的错误检测。

内部使用puppeteer进行站点首页(/index.html)的错误检测,超时时间为10s

若页面JS错误,中断执行,则yarn run build进程结果抛出1

index.html内文件找不到,也会中断进程,抛出1

Usage

/// package.json
 
// prepublish-page-check的第二个参数,为构建后的目标文件夹
{
    "scripts": {
        "build": "node build/index.js && prepublish-page-check ./dist"
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i prepublish-page-check

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.3 kB

Total Files

8

Last publish

Collaborators

  • teal-front