webpack-prefetch-plugin

v1.0.0 ISCLicense declared in the package manifest.

根据路由 path 进行命名。页面文件打包构建后,会生成 js、css、map 文件,可以过滤掉 map 文件,生成路由 path 和 js、css 文件路径的映射关系。最后组装成 script 脚本,注入 HTML 文件里。页面加载后,就可以根据页面的路由 path,找出对应要加载的 js、css 资源。如果知道用户将要去什么页面,就可以预加载对应页面资源了。如果用户要去的是第三方页面,会进行 DNS 预解析流程。

95

Security score

0 known advisories in v1.0.0

0-100 score computed by this site from verifiable signals only: known OSV.dev advisories affecting this exact version, how recently it was published, and the repository's OpenSSF Scorecard.advisory penalty −0 · staleness penalty −5

Weekly downloads

Downloads across all versions in the last 7 days, from the official npm downloads API (api.npmjs.org).

Unpacked size

Size of v1.0.0 on disk after npm install extracts the tarball, as reported by the npm registry.

21.0 kB

Dependencies

Direct runtime dependencies declared by v1.0.0. Transitive dependencies are not counted here — use the lockfile audit for the full tree.

2

Last publish

When v1.0.0 was published to the registry. Long gaps can indicate an unmaintained package.

1 year ago

Security advisories

Vulnerabilities affecting v1.0.0 specifically, from OSV.dev — the open database aggregating the GitHub Advisory Database (GHSA) and CVEs. Links open the full advisory.

No known vulnerabilities affect v1.0.0.