【发布时间】:2014-05-05 10:30:26
【问题描述】:
我在一个项目中使用 Web Essentials 2013 在构建/保存时将 less 编译为 css。但是,我在编译时遇到了问题,我们正在篡改字体/图像等的相对路径。
例如:
.footer {
background: url('../img/footer_background.svg') no-repeat top center;
}
变成:
.footer {
background: url('img/footer_background.svg') no-repeat top center;
}
我记得之前有一个类似的问题,但是在 web Essentials CSS 选项中将“调整相对路径”设置为 false 就解决了这个问题。现在好像不行了。我已经尝试了最新的稳定版和最新的 nightly 版,都给出了相同的行为。
有什么建议吗? :)
【问题讨论】:
标签: css visual-studio less web-essentials