fis3-hook-relative
fis3-hook-relative copied to clipboard
编译后相对路径出错
配置文件:
fis.match('**', {
//relative,是制定文件使用相对路径
relative: true
});
源文件:
body {
background: url('../css/images/yq-bg04.jpg')
no-repeat;
}
编译后
body {
background: url(__relative('/template_html/huifang/css/images/yq-bg04.jpg'))
no-repeat;
}
请教:__relative()是什么鬼00,想保留相对路径怎么弄?
升级 fis3
找到原因了,是fis3的版本过低。原先是3.3.3升级到最新就可以了。建议安装说明里增加一下fis 的版本依赖^^