weixin / gulp-tmtsprite

Gulp CSS 雪碧图合并

Home Page:https://www.npmjs.com/package/gulp-tmtsprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

多个样式使用同一个 slice 图片问题

giiska opened this issue · comments

commented

多个样式使用同一个 slice 图片时,如果 background-image 写法不一致会导致替换 sprite 时漏掉后面的样式。

比如:

.a { background-image: url(../slice/test.png) }
.b { background-image: url("../slice/test.png") }

结果是 .a 被替换成 sprite,但 .b 还是 slice:

.a { background-image: url(../sprite/style-xxx.png) }
.b { background-image: url("../slice/test.png") }
commented

Fixed on 9a7a389