svg-sprite/grunt-svg-sprite

Configure Sprite URL

Opened this issue · 3 comments

Hi guys,

I have the following path schema:

  • /styles/core.less (here im importing sprite.less)
  • /styles/spritesheet/css/sprite.less
  • /styles/spritesheet/css/svg/sprite.css.svg

However inside sprite.less i have this:

.svg {
    background-image:url(svg/sprite.css.svg);
    background-repeat:no-repeat
}

And this not work because background image path can't be 'svg/sprite'. Instead should be '/spritesheet/css/svg/sprite.css.svg'.

How can i configure the configs on svg sprite to generate less files with this url guys?

Regards

jkphl commented

Hey @tiagoferreira-mindera,

please have a look at the documentation of output destinations, that should get you into the right direction. Please let me know if it works for you!

Cheers, Joschi

Hi,

Before i've posted this issue here i've tried many things and i have read the documentation but i didnt find anything that can solve my problem.

Can u give some hints?

jkphl commented

Could you please post your complete configuration?