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

编译后相对路径出错

Open jinxiaodan opened this issue 8 years ago • 2 comments

配置文件:

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,想保留相对路径怎么弄?

jinxiaodan avatar Mar 16 '16 07:03 jinxiaodan

升级 fis3

2betop avatar Mar 16 '16 10:03 2betop

找到原因了,是fis3的版本过低。原先是3.3.3升级到最新就可以了。建议安装说明里增加一下fis 的版本依赖^^

jinxiaodan avatar Mar 21 '16 02:03 jinxiaodan