UNPKG

requisite

Version:
24 lines (19 loc) 510 B
// Generated by CoffeeScript 1.12.4 var path, requireTry; path = require('path'); requireTry = require('../utils').requireTry; module.exports = function(opts, cb) { var stylus; stylus = requireTry('stylus'); return stylus.render(opts.source, { filename: opts.filename }, function(err, css) { var source; if (err != null) { return cb(err); } source = JSON.stringify(css); return cb(null, "module.exports = " + source + ";"); }); }; //# sourceMappingURL=stylus.js.map