Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using stylus sourcemaps with nib #265

Open
ryanmunger opened this issue Jun 20, 2014 · 1 comment
Open

Using stylus sourcemaps with nib #265

ryanmunger opened this issue Jun 20, 2014 · 1 comment

Comments

@ryanmunger
Copy link

Currently I am using nib as follows:

var express = require("express"),
    path = require("path"),
    stylus = require("stylus"),
    nib = require("nib");

function compile(str, path) {
  return stylus(str)
    .set('filename', path)
    .set('compress', true)
    .use(nib());
}

app.use(stylus.middleware({
  src: __dirname + '/public',
  compile: compile,
  sourcemaps: true
}));

app.use(express.static(path.join(__dirname, "public")));

I have sourcemaps set to true, and stylus works fine without the call to nib. However, once I add nib, the sourcemaps seem to stop working. Any ideas on this? Thanks!

@yocontra
Copy link

nib is using an old version of stylus without sourcemap support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants