These are chat archives for LearnBoost/stylus

16th
Feb 2016
Andrew Bradley
@cspotcode
Feb 16 2016 17:49
I have a custom stylus function that accepts a path to an image file. I want to pass a relative path, but the invocation and implementation of the function are in different files/locations. Is there a function to resolve paths in my .styl file?
comp(imagePath)
    background: url(imagePath)
    size = image-size(imagePath)
    background-size: (size[0] / 2) (size[1] / 2)