stephenlacy/gulp-stylus

How to pass locals/globals?

Closed this issue · 2 comments

I've been struggling with this for way too long. How to pass global variables to stylus?

(as in 'stylus.define({'themeColor','#FF00FF'}

Got it. For anyone looking at this:

Update to gulp-stylus 2.3.x
and do
.pipe(stylus({define:{'themeColor':'#fff'}}))?