stylus.plugin.coffee
is a plugin for [DocPad][] which provides an alternative way to use [Stylus][] and [Nib][].
This plugin (by default) compiles a stylus source file at src/styles/styles.styl
and places the resulting styles.css
file in out/styles
.
The source file and output directory can be customized by placing a stylus.config.coffee
file in the plugins
directory that exports a config object. An example stylus.config.coffee
file is attached to this gist.
This plugin requires stylus
and nib
to be installed. These can be installed locally in your project root with npm:
$ npm install stylus
$ npm install nib