【问题标题】:Compass configuration : get sprited icons out of folder指南针配置:从文件夹中获取精灵图标
【发布时间】:2014-05-23 22:50:46
【问题描述】:

我希望具有以下树结构,以确保包含用于构建精灵的图像文件的文件夹与生成的精灵不在同一文件夹中:

.
|
├ images_for_sprite
| ├ sprite-normal
| | ├ icon1.png
| | ├ icon2.png
| | └ iwanttogetinasprite.png
| └ sprite-retina
|   ├ icon1.png
|   ├ icon2.png
|   └ iwanttogetinasprite.png
└ static
  └ images
    ├ sprite-normal-xxxxx.png
    ├ sprite-retina-yyyyy.png
    ├ a_non_sprited_image.jpg
    └ another_one.jpg

static 是我的网络服务器将要服务的文件夹。

所以重点是我不希望其中有任何icon1.pngicon2.pngiwanttogetinasprite.png

也许sprite_load_path 是要走的路?但是关于这一点的文档并不清楚(或不存在)。

【问题讨论】:

    标签: sass compass-sass


    【解决方案1】:

    是的,所以这基本上是我的猜测:

    images=static/images
    sprite_load_path=images_for_sprite
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-11
      • 1970-01-01
      • 2012-12-12
      • 1970-01-01
      • 2014-07-27
      • 2012-09-26
      • 1970-01-01
      相关资源
      最近更新 更多