when trying to set the background for an element based on data from the specified source (via the url() construction), the gulp-stylus package produces an error when compiling the file:

expected ")", got ";"

It doesn't work like this:

 .myEl background url(data:image/png;base64,iVBORw0KGgo.....) 

and here it works

 .myEl background yellow 

why the first example is not working?

    1 answer 1

    Use quotes

     .myEl background url("data:image/png;base64,iVBORw0KGgo.....") 

    http://codepen.io/Zoxon/pen/vLKXXy