fis3-hook-relative
fis3-hook-relative copied to clipboard
导致query重复
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
已经解决,请更新插件到 [email protected]
相关修改: https://github.com/fex-team/fis3-hook-relative/commit/2ce05133465a303458de52a8e60e57e961d12ec3
运行如下命令安装: 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] 请问是什么原因导致的!