stephenlacy / gulp-stylus

Stylus plugin for gulp
MIT License
223 stars 60 forks source link

Raw globals #186

Open dmzkrsk opened 7 years ago

dmzkrsk commented 7 years ago

See #151, stylus/stylus#1286

Currenty file.data cannot be used for object variables, since they are treated by pairs of (key, value) by stylus.

This patch adds rawGlobals option, that changes how file.data is treated. When this option is set, rawDefine property is get set instead of define.

The option is deleted after it has been used.

dmzkrsk commented 7 years ago

Looks a bit broken. Will fix