【问题标题】:How to reference assets relative to the stylus directory instead of the css compile directory?如何引用相对于 stylus 目录而不是 css 编译目录的资产?
【发布时间】:2013-05-24 13:47:45
【问题描述】:

我能否定义一个相对于手写笔文件而不是编译的 CSS 文件的路径。

我尝试构建一个 bower 包,其中包含一个手写笔文件,该文件应该直接包含在 bowers components/my-package 文件夹中。如何引用我的包的资产,所以它们的路径是相对于包文件夹编译的,而不是相对于编译后的 css 文件。

【问题讨论】:

    标签: css stylus


    【解决方案1】:

    an option to resolve relative urls,它出现在Stylus 0.34.0中。

    运行 Stylus 时,请使用 --resolve-url 或仅使用 -r

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-27
      • 1970-01-01
      • 2013-10-09
      • 2015-10-08
      • 2014-12-19
      • 1970-01-01
      相关资源
      最近更新 更多