stylusify

2.1.0 • Public • Published

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

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

Package Sidebar

Install

npm i stylusify

Weekly Downloads

1

Version

2.1.0

License

BSD

Last publish

Collaborators

  • asbjornenge