stylusify
Browserify transform to require stylus files.
Install
npm install --save stylusify
Use
browserify -t stylusify entry.js
var style = require('./style.styl')
console.log(typeof style, style)
// => string, body { background-color: #ffc0cb;}
Options
browserify -t [stylusify --inline-images] entry.js // url(yolo.png) => url("data:image/png;base64,iVBOR...")
browserify -t [stylusify --autoprefix] entry.js // display: -ms-flexbox
Changelog
2.1.0
- Added support for autoprefixer
2.0.0
- Added support for inlining images
🚀
1.0.2
- Properly escaping css string
1.0.1
- Removed som logging
1.0.0
- Initial release
🎉
enjoy