-
-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
nelsonpecora
commented
Mar 23, 2015
- Adds support for multi-line sourcemap comments (as in CSS, addresses travi's issue here)
- Ignores inline base64-encoded sourcemaps
- Includes tests to prove both of the above
@@ -4,6 +4,8 @@ var path = require('path'); | |||
var fs = require('fs'); | |||
var chalk = require('chalk'); | |||
var eachAsync = require('each-async'); | |||
var convert = require('convert-source-map'); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this empty line.
Fix my inline comments and squash your commits and this should be good to go. |
ca31a64
to
1d2b55d
Compare
Thanks for looking into this so quickly. It is now updating the |
Fixed spaces and squashed commits. |
@travi that might be happening if the original sourcemap comment is pointing to a EDIT: It might be an assumption in the regex used, or it might be a bug with |
I just tried running the same build on OSX and got the same error.
EDIT: And yes, |
Can you paste the results of |
Is this the output you mean?
|
Oh! Sorry, I didn't see your edit. Hmm. Are you trying to use this on scss files, or just css files? |
I'm rev-ing the |
Ahh, hmm. That's probably it. This doesn't currently have a good way to handle sourcemaps that are pointing at a different filetype. Let me think about how to handle this. |
I'm not sure I follow. The sourcemap mentioned in |
I haven't confirmed, but I'll bet its the fact that our file pattern does not specify an extension ( I could add an exclusion in the Gruntfile, but it may be cleaner for the task to handle this automatically. Thoughts? |
Hmm. Are you revving in place? |
We are revving in place. I came into this project late and that setup was already in place, so I'm not saying its the best setup, but I do think its valid. I've confirmed that adding a EDIT: I've added #81 to track the double processing of sourcemaps separately as I think it would be valuable to handle, but don't want it to block getting this fix merged. |
Cool, thanks! Yeah, I'm inclined to agree that |
@kevva is this PR good to merge? |
More stable sourcemap filerevving
Super nice, thanks! :) |