Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fis-postpackager-extras_uri

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-postpackager-extras_uri

fis 资源定位增强

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fis-postpackager-extras_uri

fis 资源定位增强

场景

fis 可以很好的将 html 中 img, link, script 等的路径在发布的时候做转换,比如:

<!-- 发布前 -->
<script src="js/main.js"></script>
<!-- 发布后 -->
<script src="http://9.cdn/baba/main.33333.js"></script>

局限性是仅限有资源的元素适用,下面这种情况是无能为力的:

<meta name="touch_icon" content="img/toucn.png" />

本插件就是解决上述问题。

使用

配置文件 fis-conf.js:

fis.config.set('modules.postpackager', 'extras_uri');

HTML 中:

<!-- 发布前 -->
<meta name="touch_icon" content="fis__extras__uri(img/toucn.png)" />

<!-- 发布后 -->
<meta name="touch_icon" content="http://9.cdn/baba/img/toucn.png" />

demo 说明

安装完插件后,切换至 demo/src 目录下执行:

    fis release -d dev [-mD]

Keywords

FAQs

Package last updated on 16 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc