Skip to content

Commit

Permalink
Document build_css.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Aug 29, 2016
1 parent 54fa0fe commit fc262c8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/build_css.js
Expand Up @@ -4,6 +4,22 @@ const join = require('path').join
const readFileSync = require('fs').readFileSync
const dirname = require('path').dirname

/*
* Builds the CSS files.
*
* This builds the CSS using Stylus and pipes it through postcss. It's roughly
* equivalent to:
*
* stylus -I node_modules input.css | postcss -u autoprefixer
*
* Calls `done(err, res)` when done, where `res` is the final CSS string.
*
* Available options:
*
* - `compress` (Boolean) - compresses if true
* - `import` (Array of strings) - adds files to be imported
*/

module.exports = function buildCss (options, done) {
buildStylus(join(__dirname, '../css/docpress.styl'), options, done)
}
Expand Down

0 comments on commit fc262c8

Please sign in to comment.