1.0.1 • Published 5 years ago

prepublish-page-check v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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"
    }
}