fis3-hook-relative icon indicating copy to clipboard operation
fis3-hook-relative copied to clipboard

导致query重复

Open urrrich opened this issue 9 years ago • 2 comments

fis-conf设置

fis.hook('relative');
fis.set('new date', Date.now());
fis.match('**', {
    query: '?t=' + fis.get('new date')
});
fis.match('**', {
    relative: true
})

输出结果: href="style.css?t=1446616745334?t=1446616745334"

如果原链接带有query,如style.css?a=1,输出结果/style.css&a=1

urrrich avatar Nov 04 '15 06:11 urrrich

已经解决,请更新插件到 [email protected]

相关修改: https://github.com/fex-team/fis3-hook-relative/commit/2ce05133465a303458de52a8e60e57e961d12ec3

2betop avatar Dec 15 '15 13:12 2betop

运行如下命令安装: npm install -g fis3-hook-relative 控制台显示: [email protected] C:\User\user\AppData\Roaming\npm\node_modules\fis3-hook-relative 应该是安装成功了吧 fis配置文件: // 启用插件 fis.hook('relative'); // 让所有文件,都使用相对路径。 fis.match('**', { relative: true }) fis命令: fis3 release -d ../dist 控制台报错: [ERROR] unable to load plugin [fis3-hook-relative] or [fis-hook-relative] 请问是什么原因导致的!

MinosIE avatar Dec 17 '15 04:12 MinosIE