These are chat archives for LearnBoost/stylus

5th
Oct 2016
Cory Simmons
@corysimmons
Oct 05 2016 13:49
How to Node Stylus?
var fs = require('fs');
var stylus = require('stylus');
var jeet = require('../../jeet');

var fileIn = fs.readFileSync('test/node-stylus/style.styl', 'utf8'); // stuff exists

stylus.render(fileIn, { use: jeet }, function (err, css) {
  if (err) throw err;
  console.log(1);
  console.log(css); // outputs nothing
  console.log(2);
});
Even without the use step it doesn't output anything.
stylus(fileIn).render(function (err, css) {
  console.log(css)
});
outputs nothing
@kizu ping
piotr-aueternum
@Piotr-Aueternum
Oct 05 2016 13:57
Use with gulp much easier
Cory Simmons
@corysimmons
Oct 05 2016 13:59
Right... but I'd like to know what's going on
Can't log anything with nib or axis or any Stylus libs.
Cory Simmons
@corysimmons
Oct 05 2016 14:08
Nevermind