-
Notifications
You must be signed in to change notification settings - Fork 141
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
Sourcemaps #25
Comments
I've tried testing this however for me it's failing with the following error: Syntax error: Error generating source map: couldn't determine public URL for the source stylesheet. Looks like sass is not able to create the sourcemap since it's receiving from stdin rather than the file directly. |
Hmm, yeah, makes sense. I'll need to remove the concat ability and use files directly. |
Just popping in to say I'd also like to see this feature. |
👍 |
#13 needs to be completed first. |
In my environment im able to create source maps if using the sass comand line commands, with grunt-contrib-sass doesn't seem to be possible at the moment. |
+1 |
+1 |
1 similar comment
👍 |
Next person to +1 must write a PR implementing this feature. |
👍 hah, it's already done. just waiting to merge in the open pr before I do a release. |
👍 |
1 similar comment
👍 |
I'm really interested on this feature since I saw this article. Did anyone know when this will be implemented and ready for use? |
You can already enable sourcemaps by passing |
On @passy's comment, it's worth noting that you also need the pre-release version of sass, installable via
otherwise the sourcemap option fails. |
Thank you guys. It was my mistake, I hadn't the latest version of Sass. |
@passy can you post an example of your gruntfile? i can't figure how dargs really works =\ |
@nissoh I found the easiest way to get it working is use the latest grunt-contrib-sass version from the repo. Replace your
Then add the task to your grunt file:
If you wish to use Compass with your project I'd also recommend just installing this version of Sass: |
@steriley I added the new
But I just get this error when I run
and
Any ideas? |
@steriley Thanks! |
Following @steriley 's recommendations, I got it to work! The error: This says it has been fixed. |
Just published 0.4.0 which supports source maps. |
What versions of SASS and Compass should be installed? I used 3.3.0-alpha-141, and on top of that, What should I roll back too? |
See the sourcemap option in the readme. |
<3 oh youuuuuu |
Hi, I'm on Windows 8, with ruby 2.0 and sass (3.3.0.alpha.134). I can sucessfully generate source maps with
In grunt, I've got this set:
but no .map's are being generated. Any thoughts? |
Same problem here, in the grunt task how do I specify the sourcemap urls? Thanks UPDATE: I just had to update the grunt-contrib-sass to 0.4.0, now it's working :) |
Sorry to dig up this issue again, Im running grunt-contrib-sass version 0.5.0, have the sourcemap option enabled and the --pre version of sass. The source-maps are generated if I compile the css with Heres my grunt configuration:
Any idea of what might be failing? |
I'm on Sass 3.3.0.rc.1 (Maptastic Maple) and running grunt-contrib-sass ~0.5.0. I'm getting sourcemaps created, but they aren't working with Chrome. When I use sass directly to created the maps however, they work fine: |
I figured out my issue, sorry for the false alarm. Looks like if you are running anything that modifies the CSS afterwards like cssmin it won't work. I know it seems odd to need to use cssmin since grunt-contrib-sass supports compression, but for this project we are using autoprefixer which expands it back out. Just needed to change my grunt tasks a bit and I'm golden. |
My issue had the same symptoms, but bit causes, I was using grunt connect with hostname "localhost", had to use my local IP to have sourcemaps loaded into Chrome devtools. |
Is it possible to make this feature degrade gracefully? I'm noticing that if users aren't running Sass 3.3 they get a fatal error if it's not possible, I'm wondering if there is a way to detect their version of sass from within the gruntfile and not include that property |
Updated to grunt-contrib-sass to 0.4.0 and now it's working. I wish I found this thread a lot sooner as it would have saved me from banging my head on the desk wondering why it wasn't working! THANK YOU! |
Add the
sourcemap
option when the feature lands in Sass stable.The text was updated successfully, but these errors were encountered: