fis3-parser-html-replaceurl
html文件替换静态url
安装
npm install -g fis3-parser-html-replaceurl
版本
v0.0.1
替换html中的静态url
v0.1.0
将html中的注释文件删除(可自定义保留那些注释字眼),可对html文件进行压缩
v0.2.0
新增对js中关键字眼的替换
自定义函数名
fismedia'test' ;
newWords
key为需要替换的字眼,value为替换后的stringremoveComments
是否删除注释,默认falseignoreWords
删除注释时,需要过滤的字眼,主要排除模板引擎自带的注释minifier
是否压缩,默认false
个人中心 <!-- <meta name="renderer" content="webkit|ie-comp|ie-stand"> --> <!-- <link rel="stylesheet" href="fdc_img3_url/usercenter/css/common.css"> --> <!-- <p>sfhjshsd</p> --> <!-- ko foreach:{data:activeData,as:"value"} --> 我的git主页 knockout技术分享 <!-- 版权:END --> <!-- 版权:END --> <!--<script src="js/a.js"></script>-->
个人中心<!-- ko foreach:{data:activeData,as:"value"} -->我的git主页knockout技术分享