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

Support for gulp-sourcemaps #70

Closed
leepowelldev opened this issue Aug 4, 2014 · 20 comments · Fixed by #103
Closed

Support for gulp-sourcemaps #70

leepowelldev opened this issue Aug 4, 2014 · 20 comments · Fixed by #103
Labels

Comments

@leepowelldev
Copy link

... would be great.
https://github.com/floridoo/gulp-sourcemaps

@sylvainbaronnet
Copy link

+1

@leepowelldev
Copy link
Author

New version of stylus now supports source maps (http://learnboost.github.io/stylus/docs/sourcemaps.html), however this isn't really a viable solution if you pipe stylus output to any post-processors.

@sylvainbaronnet
Copy link

Maybe it works with post processor if you use "inline" option ?

@stephenlacy
Copy link
Owner

It seems that it will work with inline set, any test builds so far?

@leepowelldev
Copy link
Author

Would it still work if you then piped the output through something like gulp-pxtorem?
Wouldn't that then mess up the line numbers references of the source maps due to actually modifying the resulting CSS?

@heikki
Copy link

heikki commented Aug 21, 2014

@leepowellcouk Every plugin between sourcemaps.init and sourcemaps.write need to support sourcemaps. Plugins with gulp sourcemaps support are listed here:

https://github.com/floridoo/gulp-sourcemaps/wiki/Plugins-with-gulp-sourcemaps-support

@leepowelldev
Copy link
Author

IMO thats the preferable way to go - the more plugins with support for gulp-sourcemaps the easier it is to pipe them together. Each plugin trying to support sourcemaps independently is just leading to more problems. It's great that Stylus can now support them, but in workflow environments that utilise gulp or grunt then we need more flexibility.

@jescalan
Copy link
Collaborator

Will be working on getting this feature into accord shortly -- issue open here: jescalan/accord#52

@leepowelldev
Copy link
Author

👍

@stephenlacy
Copy link
Owner

@Jenius sourcemaps can work now with this setup: #73 (comment)

@redders6600
Copy link

This doesn't seem to work if using the nib plugin with gulp-stylus, I get following:

Potentially unhandled rejection [1] Error: 
  "node_modules/nib/lib/nib/vendor.styl" is not in the SourceMap.

This is possibly an issue with the node nib library (tj/nib/#265)

@jescalan
Copy link
Collaborator

Good news, we have a PR open to add source map support to accord. It is a breaking change, but once this has been merged and shipped I'll submit a PR to upgrade this library cleanly.

jescalan/accord#56

@stephenlacy
Copy link
Owner

👍

@yocontra
Copy link
Contributor

Is this in yet?

@jescalan
Copy link
Collaborator

Just published a new version of accord with full support for sourcemaps yesterday, so we can implement this whenever!

@stephenlacy
Copy link
Owner

@Jenius Nice, lets do it!

@jescalan
Copy link
Collaborator

I'll try to get a PR in before next Monday if I can manage 😁

@efolio
Copy link

efolio commented Dec 28, 2014

\o/ Thrilled to see that it should soon be available!
Can't wait to see :D

@jescalan
Copy link
Collaborator

jescalan commented Jan 9, 2015

Good news guys, I just finished implementing this and it works gloriously. Both inline and external sourcemaps are looking great. I'd expect this feature to ship out today. Whoo! 🎉 🎊

@stephenlacy
Copy link
Owner

👍

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

Successfully merging a pull request may close this issue.

8 participants