https://github.com/morlay/stylus-browserify
[DEPRECATED]
https://github.com/morlay/stylus-browserify
Last synced: 10 months ago
JSON representation
[DEPRECATED]
- Host: GitHub
- URL: https://github.com/morlay/stylus-browserify
- Owner: morlay
- Created: 2014-08-27T16:05:46.000Z (almost 12 years ago)
- Default Branch: develop
- Last Pushed: 2015-08-20T08:13:10.000Z (almost 11 years ago)
- Last Synced: 2025-06-14T18:05:08.257Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 168 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Stylus Browserify
[](https://travis-ci.org/morlay/stylus-browserify)
[](https://david-dm.org/morlay/stylus-browserify)
Use for [browserify plugin](https://github.com/substack/node-browserify#plugins) and stream to a single css file.
## Usage
var browserify = require('browserify');
var stylusBrowserify = require('stylus-browserify')
var b = browserify('/path/to/entry.js').plugin(stylusBrowserify, OPTIONS);
var stream = b.bundle();
stream.pipe(); // pipe to main.js must pipe first
stream.css.pipe(); // pipe to main.css
## Plugin Options
[stylus api](http://learnboost.github.io/stylus/docs/js.html) can be used, but
{
include: [ path ],
import: [ path ],
use: [ fn ],
set: [
[ setting, value ]
],
define: [
[ name, node ]
[ name, fn ]
]
}