A
A
Andrey Chernyshev2015-04-30 19:03:02
css
Andrey Chernyshev, 2015-04-30 19:03:02

How to set gulp stylus url to specific prefix address?

Good afternoon, I would like to understand how, when writing code in a .styl file:
background-image url("picture.jpg")
At the output, get:

background-image: url("path_to_images/picture.jpg");

Variant with:
$prefix = "path_to_images"
background-image url($prefix + "picture.jpg")

please do not offer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timofey, 2015-04-30
@mr_T

Try to make a function, similar to the linear-gradient from nib (there at the bottom of the page)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question