Nietzsche's Preposterous Moustache
    Wondering what’s next for npm?Check out our public roadmap! »

    html-supply-loader

    0.0.5 • Public • Published

    html-supply-loader

    针对html页面中 A标签的href,audio标签、video标签、inline标签、script的inline,补齐绝对路径

    usage

    1. install

      npm install html-supply-loader
    2. 针对效果

      //将html内容塞进来
      <link href="inline/a.html?__inline" />
      //将js文件塞进来
      <script src="a.js?__inline"></script>
      //补齐a标签中的图片路径
      <a href="a.jpg"></a>
      //补齐audio标签
      <audio src="a.mp3"></audio>
      //补齐audio标签
      <video src="a.mp4"></video>
      //补齐img标签的data-src
      <img data-src="a.jpg" />

    Install

    npm i html-supply-loader

    DownloadsWeekly Downloads

    1

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    4.79 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar