andreypopp / cssobjectify

Browserify transform to turn stylesheets into JSON objects
MIT License
39 stars 4 forks source link

CSS preprocessors #2

Open yocontra opened 10 years ago

yocontra commented 10 years ago

This is totally not the right place for this, but I think it would be extremely cool to be able to use this with preprocessors. I'm not sure if browserify supports transform chains (for example, a .styl file should go through stylus then cssobjectify) but we could probably make something to enable this behavior.

var Styles = require('./Component.styl');

would be amazing, and you could plug in stuff like nib to take care of vendor prefixes + cross-browser for you