npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

htmlcheckwebpackplugin

v1.0.5

Published

script标签模板字符检测webpackPlugin插件

Downloads

11

Readme

script标签地址检查webpack插件

htmlcheckwebpackplugin

//script标签url地址检查 webpackPlugin插件

诞生:
    基于以往的项目中遇到过通过cdn引入的三方资源 (<script src='cdn.xxx'>) 导致项目功能异常,由于插件来源是第三方如果没能及时找到解决方案,
  就会导致止血时间无限期延长。这种事件对于大型项目来说是致命的打击。为了保障项目的稳定性我们可以在项目中直接杜绝cdn引入的资源,此项目诞生了。

目的:
  直接冲根源上杜绝引入可能导致异常的资源,也杜绝开发人员的不之情或无意识操作


  当然此项目检测的字段开通了配置项,也可检查除cdn之外的其他字段。   

功能描述:
  1.检查整个项目中的scritpt标签的url或其属性的异常字段
  2.定位异常代码位置并在控制台告警
  3.支持配置无需检测的标签

注册下载

npm install htmlcheckwebpackplugin -S

入参

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | currentField | 需要被检查到的字符 | string | - | "cdn" | | filterKey | 忽略检测属性 | string | - | "noCheck" |

示例

import HtmlCheckWebpackPlugin from 'htmlcheckwebpackplugin';

const devWebpackConfig = merge(baseWebpackConfig, { module: ..., devServer: ..., plugins: [ new HtmlCheckWebpackPlugin({ currentField: 'cdn', filterKey: 'noCheck', }), ], })

版本

1.0.5
    1.初版上传
    

作者联系方式

欢迎各位小伙伴提交优化意见或者bug  
qq邮箱:[email protected]